审批历史记录模型新增字段
This commit is contained in:
@@ -11,7 +11,7 @@ class WxworkApproval(models.Model):
|
|||||||
inherit = ['mail.thread', 'mail.activity.mixin']
|
inherit = ['mail.thread', 'mail.activity.mixin']
|
||||||
_order = 'id desc'
|
_order = 'id desc'
|
||||||
|
|
||||||
template_id = fields.Char(string='审批模板id')
|
template_id = fields.Many2one('wxwork.approval.template', string='审批模板')
|
||||||
business_model = fields.Many2many('sale.order', 'sale_approval_rel', 'sale_id', 'approval_id', string='业务类型')
|
business_model = fields.Many2many('sale.order', 'sale_approval_rel', 'sale_id', 'approval_id', string='业务类型')
|
||||||
approve_history_ids = fields.One2many('wxwork.approval.history', 'approve_id', string='审批流程')
|
approve_history_ids = fields.One2many('wxwork.approval.history', 'approve_id', string='审批流程')
|
||||||
state = fields.Char(string='状态')
|
state = fields.Char(string='状态')
|
||||||
@@ -19,9 +19,6 @@ class WxworkApproval(models.Model):
|
|||||||
|
|
||||||
class WxworkApprovalHistory(models.Model):
|
class WxworkApprovalHistory(models.Model):
|
||||||
_name = 'wxwork.approval.history'
|
_name = 'wxwork.approval.history'
|
||||||
_description = "审批"
|
_description = "审批历史记录"
|
||||||
|
|
||||||
template_id = fields.Char(string='审批模板id')
|
approve_id = fields.Many2one('wxwork.approval', string='审批')
|
||||||
business_model = fields.Many2many('sale.order', 'sale_approval_rel', 'sale_id', 'approval_id', string='业务类型')
|
|
||||||
approve_flow = fields.Char(string='审批流程')
|
|
||||||
state = fields.Char(string='状态')
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
<sheet>
|
<sheet>
|
||||||
<group>
|
<group>
|
||||||
<field name="id"/>
|
<field name="id"/>
|
||||||
|
<field name="template_id"/>
|
||||||
<field name="business_model" widget="many2many_tags"/>
|
<field name="business_model" widget="many2many_tags"/>
|
||||||
</group>
|
</group>
|
||||||
</sheet>
|
</sheet>
|
||||||
|
|||||||
Reference in New Issue
Block a user