@@ -115,7 +115,6 @@ class IssueApprovalLine(models.Model):
|
||||
is_class = fields.Boolean(string="班子会")
|
||||
is_boss = fields.Boolean(string="董事会")
|
||||
is_note = fields.Boolean(string="上级单位")
|
||||
is_modify = fields.Boolean(string="修改")
|
||||
|
||||
def open_record(self):
|
||||
self.ensure_one()
|
||||
@@ -124,16 +123,15 @@ class IssueApprovalLine(models.Model):
|
||||
if self.employee_id and self.issue_library_id and self.employee_id == self.issue_library_id.employee_id:
|
||||
is_modify = True
|
||||
|
||||
self.write({'is_modify': is_modify})
|
||||
if self.issue_library_id:
|
||||
self.issue_library_id.write({'is_modify': is_modify})
|
||||
|
||||
return {
|
||||
'type': 'ir.actions.act_window',
|
||||
'res_model': 'issue.library',
|
||||
'res_id': self.issue_library_id.id,
|
||||
'view_mode': 'form',
|
||||
'target': 'current',
|
||||
'context': {
|
||||
'default_is_modify': is_modify,
|
||||
}
|
||||
}
|
||||
|
||||
class IssueRoomApproval(models.Model):
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
readonly="not (is_admin or issue_state in ['to_do', 'cancel','to_modify'] or is_modify)"/>
|
||||
<field name="department_personnel_ids" widget="many2many_tags" invisible="1"/>
|
||||
<field name="is_admin" invisible="1"/>
|
||||
<field name="is_modify"/>
|
||||
<field name="is_modify" invisible="1"/>
|
||||
<field name="issue_state" groups="soong_workflow.group_soong_workflow_manager"/>
|
||||
<field name="workflow_id" string="法审流程" invisible="is_legal_trial == 'no'"
|
||||
domain="[('res_model', '=', 'contract.review.approval'), ('create_uid', 'in', department_personnel_ids)]"
|
||||
|
||||
Reference in New Issue
Block a user