diff --git a/yuthon_maintain/models/processing_order_approval.py b/yuthon_maintain/models/processing_order_approval.py index bb3c5f49a..0cae16270 100644 --- a/yuthon_maintain/models/processing_order_approval.py +++ b/yuthon_maintain/models/processing_order_approval.py @@ -61,6 +61,7 @@ class ProcessingOrderApproval(models.Model): fee_description = fields.Text(string="费用说明") follow_up = fields.Text(string="后续情况") + create_time = fields.Date(string="创建日期", default=fields.Datetime.now) def _get_default_name_title(self): return self._description if self._description else self._name diff --git a/yuthon_maintain/models/property_device_repair.py b/yuthon_maintain/models/property_device_repair.py index db1e0a224..f61101e7f 100644 --- a/yuthon_maintain/models/property_device_repair.py +++ b/yuthon_maintain/models/property_device_repair.py @@ -20,6 +20,7 @@ class PropertyDeviceRelief(models.Model): start_date = fields.Date(string="开始日期") remake = fields.Text(string="备注") report_state = fields.Selection([('to', '待处理'), ('done', '已处理')], string='状态', default='to') + create_time = fields.Date(string="创建日期", default=fields.Datetime.now) urgency_level = fields.Selection([('normal', '普件'), ('urgent', '急件'), ('emergency', '特急件')], string='紧急度', default='normal') documents_ids = fields.Many2many('ir.attachment', string="附件") diff --git a/yuthon_maintain/models/property_report_repair.py b/yuthon_maintain/models/property_report_repair.py index e82989da7..4a01f4ac4 100644 --- a/yuthon_maintain/models/property_report_repair.py +++ b/yuthon_maintain/models/property_report_repair.py @@ -20,7 +20,6 @@ class PropertyRentRelief(models.Model): contact = fields.Char(string="联系人") phone = fields.Char( string="联系电话") leader_id = fields.Many2one('res.users', string="负责人") - start_date = fields.Date(string="开始日期") types_repairs = fields.Selection([('hydropower', '水电维修'), ('building', '门窗维修'), ('other', '其他维修')], string='维修类型') problem_description = fields.Text(string="问题描述") remake = fields.Text(string="备注") @@ -32,6 +31,7 @@ class PropertyRentRelief(models.Model): work_end = fields.Boolean(string="结束") self_users_ids = fields.Many2many('res.users', string="当前经办人", default=lambda self: [(6, 0, [self.env.user.id])]) + create_time = fields.Date(string="创建日期", default=fields.Datetime.now) def _get_default_name_title(self): return self._description if self._description else self._name diff --git a/yuthon_maintain/views/processing_order_approval_views.xml b/yuthon_maintain/views/processing_order_approval_views.xml index e0295487f..122e02fdb 100644 --- a/yuthon_maintain/views/processing_order_approval_views.xml +++ b/yuthon_maintain/views/processing_order_approval_views.xml @@ -10,6 +10,8 @@ + + diff --git a/yuthon_maintain/views/property_device_repair_views.xml b/yuthon_maintain/views/property_device_repair_views.xml index deea6f496..f5584ffec 100644 --- a/yuthon_maintain/views/property_device_repair_views.xml +++ b/yuthon_maintain/views/property_device_repair_views.xml @@ -6,8 +6,11 @@ + -