添加功能
This commit is contained in:
@@ -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='用章范围')
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<field name="urgency_level" readonly="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="is_chapter"/>
|
||||
<field name="is_chapter" required="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="is_meet"/>
|
||||
@@ -83,8 +83,8 @@
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="type_stamp_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" invisible="not is_chapter"/>
|
||||
<field name="scope_chapter_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" invisible="not is_chapter"/>
|
||||
<field name="type_stamp_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" invisible="is_chapter == 'no' or not is_chapter"/>
|
||||
<field name="scope_chapter_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" invisible="is_chapter == 'no' or not is_chapter"/>
|
||||
</group>
|
||||
<group string="文件内容">
|
||||
<field name="main_text" string=" "/>
|
||||
|
||||
@@ -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="合同签订日期")
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<field name="is_split" string="拆分"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="is_chapter"/>
|
||||
<field name="is_chapter" required="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="is_issues"/>
|
||||
@@ -101,8 +101,8 @@
|
||||
<field name="is_contract" invisible="1"/>
|
||||
<field name="contract_source_id" invisible="not is_child_contract"/>
|
||||
<field name="condition" readonly="1" invisible="1"/>
|
||||
<field name="type_stamp_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" invisible="not is_chapter"/>
|
||||
<field name="scope_chapter_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" invisible="not is_chapter"/>
|
||||
<field name="type_stamp_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" invisible="is_chapter == 'no' or not is_chapter"/>
|
||||
<field name="scope_chapter_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" invisible="is_chapter == 'no' or not is_chapter"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<field name="urgency_level" readonly="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="is_chapter"/>
|
||||
<field name="is_chapter" required="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="is_issues"/>
|
||||
@@ -47,8 +47,8 @@
|
||||
<field name="work_end" invisible="1"/>
|
||||
<field name="name"/>
|
||||
<field name="users_id"/>
|
||||
<field name="type_stamp_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" invisible="not is_chapter"/>
|
||||
<field name="scope_chapter_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" invisible="not is_chapter"/>
|
||||
<field name="type_stamp_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" invisible="is_chapter == 'no' or not is_chapter"/>
|
||||
<field name="scope_chapter_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" invisible="is_chapter == 'no' or not is_chapter"/>
|
||||
<field name="information_categories_ids" widget="many2many_tags"/>
|
||||
<field name="reason"/>
|
||||
<field name="document_ids" widget="preview_many2many"/>
|
||||
|
||||
Reference in New Issue
Block a user