添加功能
This commit is contained in:
@@ -84,9 +84,15 @@ class YuthonOfficial(models.Model):
|
||||
'state': '申请人',
|
||||
'code': self.env['ir.sequence'].next_by_code('sub_enterprises_code'),
|
||||
'official_partner_id': official_partner_id.id,
|
||||
'issuance_process_id': self.id,
|
||||
'document_ids': [(6, 0, all_document_ids)] if all_document_ids else False
|
||||
})
|
||||
workflow_id = self.env['soong.workflow.record'].search([('code', '=', self.code)], limit=1).id
|
||||
if workflow_id:
|
||||
self.env['soong.workflow.line'].create({
|
||||
'model': 'yuthon.sub.enterprises',
|
||||
'res_id': sub_id.id,
|
||||
'workflow_record_id': workflow_id
|
||||
})
|
||||
self.write({'sub_id': sub_id.id})
|
||||
|
||||
@api.onchange('is_cold')
|
||||
|
||||
Reference in New Issue
Block a user