添加功能
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
<group col="2">
|
||||
<group>
|
||||
<field name="code"/>
|
||||
<field name="workers_name"/>
|
||||
<field name="yuthon_company"/>
|
||||
<field name="department_id"/>
|
||||
</group>
|
||||
|
||||
@@ -14,17 +14,16 @@ class IssueApprovalDecision(models.Model):
|
||||
category_matter = fields.Many2one('issue.approval.decision',string='上级事项')
|
||||
child_ids = fields.One2many('issue.approval.decision', 'category_matter', string='下级事项')
|
||||
specifics = fields.Char(string='具体事项')
|
||||
council = fields.Selection([('1','审'), ('2','决'), ('3',' ')], string='党总委员会')
|
||||
team_meet = fields.Selection([('1','审'), ('2','决'), ('3',' ')], string='经营班子会')
|
||||
board_meet = fields.Selection([('1','审'), ('2','决'), ('3',' '), ('4','授权投决会')], string='董事会')
|
||||
council = fields.Selection([('1','审'), ('2','决')], string='党总委员会')
|
||||
team_meet = fields.Selection([('1','审'), ('2','决')], string='经营班子会')
|
||||
board_meet = fields.Selection([('1','审'), ('2','决'), ('4','授权投决会')], string='董事会')
|
||||
district_bureau = fields.Char(string='区政府、区财政局')
|
||||
remarks = fields.Char(string='备注')
|
||||
#
|
||||
|
||||
|
||||
@api.onchange('ordinal', 'category_matter')
|
||||
def _onchange_department_code(self):
|
||||
for code in self:
|
||||
|
||||
if code.category_matter.ordinal:
|
||||
code.ordinal = code.category_matter.ordinal +'.'+ code.ordinal if code.ordinal else ''
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user