Files
Odoo-18.0-20251222/maintenance_plan_activity/models/maintenance_planned_activity.py
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

30 lines
946 B
Python

# Copyright 2019-20 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class MaintenancePlannedActivity(models.Model):
_name = "maintenance.planned.activity"
_description = "Maintenance Planned Activity"
activity_type_id = fields.Many2one(
comodel_name="mail.activity.type",
string="Activity Type",
required=True,
)
user_id = fields.Many2one(
comodel_name="res.users",
string="Responsible",
default=lambda self: self.env.user,
)
date_before_request = fields.Integer(
string="# Days before request",
help="This is the number of days the due date of the activity will be"
"set before the Maintenance request scheduled date",
)
maintenance_plan_id = fields.Many2one(
comodel_name="maintenance.plan",
string="Maintenance Plan",
)