From da32982b07a3b5cd762efbf7f83951bb2e9921a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Mon, 25 May 2026 15:02:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_official/models/official_partner.py | 4 ++++ yuthon_official/models/officical_type.py | 8 ++++++-- yuthon_official/views/official_menus.xml | 2 +- yuthon_official/views/official_partner_views.xml | 1 + yuthon_official/views/official_type_views.xml | 5 +++-- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/yuthon_official/models/official_partner.py b/yuthon_official/models/official_partner.py index 8024f0f8e..7cdc5eb54 100644 --- a/yuthon_official/models/official_partner.py +++ b/yuthon_official/models/official_partner.py @@ -9,4 +9,8 @@ class OfficialPartner(models.Model): name = fields.Char(string="发文单位") note = fields.Char(string="说明") + unit_type = fields.Selection([ + ('gov', '行政事业单位'), + ('other', '其他单位') + ], string='单位类型', default='gov') diff --git a/yuthon_official/models/officical_type.py b/yuthon_official/models/officical_type.py index bc9161ac0..847c2aa8d 100644 --- a/yuthon_official/models/officical_type.py +++ b/yuthon_official/models/officical_type.py @@ -13,11 +13,15 @@ class OfficialType(models.Model): class MainFlats(models.Model): _name = 'main.flats' - _description = '主送/抄送单位' + _description = '收文单位' _order = 'sequence' - name = fields.Char(string="主送/抄送单位") + name = fields.Char(string="收文单位") sequence = fields.Integer(string='排序序号') + unit_type = fields.Selection([ + ('gov', '行政事业单位'), + ('other', '其他单位') + ], string='单位类型', default='gov') class CopyFlats(models.Model): diff --git a/yuthon_official/views/official_menus.xml b/yuthon_official/views/official_menus.xml index 077ef212c..7a52c0f4c 100644 --- a/yuthon_official/views/official_menus.xml +++ b/yuthon_official/views/official_menus.xml @@ -123,7 +123,7 @@ sequence="20"/> + diff --git a/yuthon_official/views/official_type_views.xml b/yuthon_official/views/official_type_views.xml index 701b874f5..889e0a899 100644 --- a/yuthon_official/views/official_type_views.xml +++ b/yuthon_official/views/official_type_views.xml @@ -19,14 +19,15 @@ main.flats.tree main.flats - + + - 主送/抄送单位 + 收文单位 main.flats tree