mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
26 lines
675 B
Python
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.")
|