diff --git a/yuthon_maintain/models/property_device_repair.py b/yuthon_maintain/models/property_device_repair.py index 44514a058..ec69bbb97 100644 --- a/yuthon_maintain/models/property_device_repair.py +++ b/yuthon_maintain/models/property_device_repair.py @@ -8,6 +8,7 @@ from odoo.exceptions import UserError, ValidationError class PropertyDeviceRelief(models.Model): _name = 'property.device.repair' _description = '报事报修' + _inherit = ['soong.workflow.mixin', 'mail.thread.main.attachment', 'mail.activity.mixin'] name = fields.Char(string='标题', compute='_compute_name', store=True) code = fields.Char(string="报修编号", diff --git a/yuthon_maintain/models/property_report_repair.py b/yuthon_maintain/models/property_report_repair.py index b51dfce9b..f38bc52f5 100644 --- a/yuthon_maintain/models/property_report_repair.py +++ b/yuthon_maintain/models/property_report_repair.py @@ -8,6 +8,7 @@ from odoo.exceptions import UserError class PropertyRentRelief(models.Model): _name = 'property.report.repair' _description = '报事报修(物业)' + _inherit = ['soong.workflow.mixin', 'mail.thread.main.attachment', 'mail.activity.mixin'] name = fields.Char(string='标题', compute='_compute_name', store=True) code = fields.Char(string="报修编号",