添加功能
This commit is contained in:
@@ -33,6 +33,7 @@ class YuthonOfficial(models.Model):
|
||||
department_id = fields.Many2one('hr.department', string="申请人部门")
|
||||
official_statu = fields.Selection([('done', '办结'), ('approval', '审核')], string="公文环节")
|
||||
is_meet = fields.Boolean(string="是否上会")
|
||||
related_issues_id = fields.Many2one('issue.library', string="关联议题")
|
||||
is_official_incoming = fields.Boolean(string="是否收文")
|
||||
active = fields.Boolean('Active', default=True, tracking=True)
|
||||
|
||||
@@ -42,7 +43,6 @@ class YuthonOfficial(models.Model):
|
||||
is_supervising = fields.Boolean(string="是否督办")
|
||||
deadline = fields.Date(string="办理期限")
|
||||
done_date = fields.Date(string="完成时间")
|
||||
|
||||
workflow_inspector_ids = fields.One2many('soong.workflow.inspector', 'yuthon_official_id', string="督办事项")
|
||||
room_booking_ids = fields.One2many('room.booking', 'yuthon_official_id', string="会议关联")
|
||||
issue_library_ids = fields.One2many('issue.library', 'yuthon_official_id', string="议题关联")
|
||||
|
||||
@@ -29,14 +29,19 @@
|
||||
invisible="urgency_level != 'urgent'"/>
|
||||
<widget name="web_ribbon" title="特级" bg_color="text-bg-danger"
|
||||
invisible="urgency_level != 'emergency'"/>
|
||||
<group col="3">
|
||||
<group col="4">
|
||||
<group>
|
||||
<field name="code" string="流水号" readonly="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="urgency_level" readonly="1"/>
|
||||
</group>
|
||||
<group/>
|
||||
<group>
|
||||
<field name="is_meet"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="related_issues_id" invisible="is_meet == False"/>
|
||||
</group>
|
||||
</group>
|
||||
<div class="oe_title">
|
||||
<label for="name"/>
|
||||
@@ -52,7 +57,6 @@
|
||||
<field name="secret_level"/>
|
||||
<field name="date"/>
|
||||
<field name="deadline"/>
|
||||
<field name="is_meet"/>
|
||||
<field name="official_documents_ids" widget="many2many_tags"/>
|
||||
</group>
|
||||
<group>
|
||||
|
||||
Reference in New Issue
Block a user