diff --git a/yuthon_official/models/yuthon_official.py b/yuthon_official/models/yuthon_official.py index c9537881b..bbde74317 100644 --- a/yuthon_official/models/yuthon_official.py +++ b/yuthon_official/models/yuthon_official.py @@ -41,7 +41,7 @@ class YuthonOfficial(models.Model): related_issues_id = fields.Many2one('issue.library', string="关联议题") is_official_incoming = fields.Boolean(string="是否收文") active = fields.Boolean('Active', default=True, tracking=True) - is_chapter = fields.Boolean(string="是否用章") + is_chapter = fields.Selection([('yes', '是'), ('no', '否')], string="是否用章") type_stamp_ids = fields.Many2many('seals.type.setting', string='用章类型') scope_chapter_ids = fields.Many2many('seals.scope.setting', string='用章范围') diff --git a/yuthon_official/views/yuthon_official_views.xml b/yuthon_official/views/yuthon_official_views.xml index 4b3cafa20..dd18d0528 100644 --- a/yuthon_official/views/yuthon_official_views.xml +++ b/yuthon_official/views/yuthon_official_views.xml @@ -37,7 +37,7 @@ - + @@ -83,8 +83,8 @@ - - + + diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index 93bf482db..2c7d68658 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -99,7 +99,7 @@ class PropertyLeaseContract(models.Model): tenure_type = fields.Selection([('self', '自有'), ('agency', '代管')], string='权属类型', compute="_compute_admin_id", store=True) contract_code = fields.Char(string="合同编号") display_name = fields.Char(string="合同编号", compute="_compute_display_name", store=True) - is_chapter = fields.Boolean(string="是否用章") + is_chapter = fields.Selection([('yes', '是'), ('no', '否')], string="是否用章") type_stamp_ids = fields.Many2many('seals.type.setting', string='用章类型') scope_chapter_ids = fields.Many2many('seals.scope.setting', string='用章范围') contract_date = fields.Date(string="合同签订日期") diff --git a/yuthon_property_approval/views/property_lease_contract.xml b/yuthon_property_approval/views/property_lease_contract.xml index e469111ca..13f13e4c7 100644 --- a/yuthon_property_approval/views/property_lease_contract.xml +++ b/yuthon_property_approval/views/property_lease_contract.xml @@ -46,7 +46,7 @@ - + @@ -101,8 +101,8 @@ - - + + diff --git a/yuthon_trade/models/yuthon_business_approval.py b/yuthon_trade/models/yuthon_business_approval.py index 695147013..8f78b4152 100644 --- a/yuthon_trade/models/yuthon_business_approval.py +++ b/yuthon_trade/models/yuthon_business_approval.py @@ -22,7 +22,7 @@ class YuthonBusinessApproval(models.Model): information_categories_ids = fields.Many2many('yuthon.information.categories', string='类型') reason = fields.Text(string="正文") document_ids = fields.Many2many('ir.attachment', string="附件") - is_chapter = fields.Boolean(string="是否用章") + is_chapter = fields.Selection([('yes', '是'), ('no', '否')], string="是否用章") type_stamp_ids = fields.Many2many('seals.type.setting', string='用章类型') scope_chapter_ids = fields.Many2many('seals.scope.setting', string='用章范围') active = fields.Boolean('Active', default=True, tracking=True) diff --git a/yuthon_trade/views/yuthon_business_approval_viwes.xml b/yuthon_trade/views/yuthon_business_approval_viwes.xml index 7c05a5524..22460699a 100644 --- a/yuthon_trade/views/yuthon_business_approval_viwes.xml +++ b/yuthon_trade/views/yuthon_business_approval_viwes.xml @@ -29,7 +29,7 @@ - + @@ -47,8 +47,8 @@ - - + +