Files
manufacture/base_repair/models/repair_order.py
2021-02-19 15:15:59 -03:00

26 lines
675 B
Python

# Copyright 2021 - TODAY, Marcel Savegnago - Escodoo
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class RepairOrder(models.Model):
_inherit = "repair.order"
user_id = fields.Many2one(
"res.users",
"User",
default=lambda self: self.env.user,
help="Person in charge for the repair",
)
date_repair = fields.Datetime(
"Repair Date",
default=fields.Datetime.now,
copy=False,
help="Date of the repair, this field " "and user_id defines the calendar",
)
duration = fields.Float("Repair Duration", help="Duration in hours and minutes.")