@@ -47,7 +47,7 @@
|
||||
<field name="type_vacations_ids" widget="many2many_tags"/>
|
||||
<field name="department_id" invisible="1"/>
|
||||
<field name="date_postponed"/>
|
||||
<field name="employee_ids" widget="many2many_tags"/>
|
||||
<field name="employee_ids" widget="many2many_tags" domain="[('company_id', '=', company_id)]"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="延长明细">
|
||||
|
||||
@@ -23,6 +23,7 @@ class IssueLibrary(models.Model):
|
||||
code = fields.Char(string='编号', required=True, copy=False,
|
||||
default=lambda self: self.env['ir.sequence'].next_by_code('issue_library_code'))
|
||||
its_original_state = fields.Char(string='原议题状态')
|
||||
supporting_department = fields.Text(string='协办部门/单位')
|
||||
issue_state = fields.Selection([
|
||||
('to_do', '待推送'),
|
||||
('draft', '待申报'),
|
||||
|
||||
@@ -177,6 +177,7 @@
|
||||
readonly="not (is_admin or issue_state in ['to_do', 'cancel','to_modify', 'draft'] or is_modify)"/>
|
||||
<field name="handling_situation" string="办理情况" placeholder="(存在问题)"
|
||||
readonly="not (is_admin or issue_state in ['to_do', 'cancel','to_modify', 'draft'] or is_modify)"/>
|
||||
<field name="supporting_department" readonly="not (is_admin or issue_state in ['to_do', 'cancel','to_modify', 'draft'] or is_modify)"/>
|
||||
<field name="deliberation_content" readonly="not (is_admin or issue_state in ['to_do', 'cancel','to_modify', 'draft'] or is_modify)"/>
|
||||
<field name="will_based" readonly="not (is_admin or issue_state in ['to_do', 'cancel','to_modify', 'draft'] or is_modify)"/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user