diff --git a/repair_calendar_view/__manifest__.py b/repair_calendar_view/__manifest__.py index b0fccb03c..41d8ef0c6 100644 --- a/repair_calendar_view/__manifest__.py +++ b/repair_calendar_view/__manifest__.py @@ -3,13 +3,13 @@ { - 'name': 'Repair Calendar View', - 'version': '12.0.1.0.0', - 'category': 'Manufacturing', - 'author': "Agile Business Group, Odoo Community Association (OCA)", - 'website': 'http://www.agilebg.com', - 'license': 'LGPL-3', - 'depends': ['repair'], - 'data': ['views/mrp_repair_view.xml'], - 'installable': True, + "name": "Repair Calendar View", + "version": "13.0.1.0.0", + "category": "Manufacturing", + "author": "Agile Business Group, Odoo Community Association (OCA)", + "website": "http://www.agilebg.com", + "license": "LGPL-3", + "depends": ["repair"], + "data": ["views/mrp_repair_view.xml"], + "installable": True, } diff --git a/repair_calendar_view/models/repair.py b/repair_calendar_view/models/repair.py index 39f29126e..73d681cfc 100644 --- a/repair_calendar_view/models/repair.py +++ b/repair_calendar_view/models/repair.py @@ -5,12 +5,17 @@ from odoo import fields, models class RepairOrder(models.Model): - _inherit = 'repair.order' + _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") + user_id = fields.Many2one( + comodel_name="res.users", + string="User", + default=lambda self: self.env.user, + help="Person in charge for the repair", + ) + date_repair = fields.Datetime( + string="Repair Date", + default=fields.Datetime.now, + copy=False, + help="Date of the repair, this field " "and user_id defines the calendar", + ) diff --git a/repair_calendar_view/views/mrp_repair_view.xml b/repair_calendar_view/views/mrp_repair_view.xml index e229116c1..b73736745 100644 --- a/repair_calendar_view/views/mrp_repair_view.xml +++ b/repair_calendar_view/views/mrp_repair_view.xml @@ -1,32 +1,33 @@ - + repair.calendar.form repair.order - + - + - + - Repair Orders Calendar repair.order - - - + + + - tree,kanban,calendar,form -