diff --git a/yuthon_property_approval/data/sale_renting_code_data.xml b/yuthon_property_approval/data/sale_renting_code_data.xml index 05554499f..46dcd8d24 100644 --- a/yuthon_property_approval/data/sale_renting_code_data.xml +++ b/yuthon_property_approval/data/sale_renting_code_data.xml @@ -202,4 +202,10 @@ GS%(y)s%(month)s%(day)s 3 + + + 更名编号 + property_renamed_code + %(y)s%(month)s%(day)s + \ No newline at end of file diff --git a/yuthon_property_approval/models/property_renamed.py b/yuthon_property_approval/models/property_renamed.py index 1d9d3e6d6..36da926ff 100644 --- a/yuthon_property_approval/models/property_renamed.py +++ b/yuthon_property_approval/models/property_renamed.py @@ -11,6 +11,7 @@ class PropertyRenamed(models.Model): name = fields.Char(string='标题') issue_text = fields.Html(string="正文") + code = fields.Char(string="编号", default=lambda self: self.env['ir.sequence'].next_by_code('property_renamed_code')) # 附件 renaming_materials_ids = fields.Many2many('documents.document', string='更名材料') diff --git a/yuthon_work_brand/views/hr_menus.xml b/yuthon_work_brand/views/hr_menus.xml index ca2b8cf0f..e1893fd0d 100644 --- a/yuthon_work_brand/views/hr_menus.xml +++ b/yuthon_work_brand/views/hr_menus.xml @@ -446,7 +446,8 @@ + sequence="2" + action="yuthon_hr_attendance.attendance_iot_action"/>