18 lines
578 B
Python
18 lines
578 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import api, fields, models, _
|
|
|
|
|
|
class TransLink(models.Model):
|
|
_name = 'trans.link'
|
|
_rec_name = 'name'
|
|
_order = 'sequence'
|
|
|
|
sequence = fields.Integer(string="转交顺序")
|
|
workflow_record_id = fields.Many2one('soong.workflow.record', string='关联流程')
|
|
node_button_id = fields.Many2one('soong.workflow.node.button', string="按钮")
|
|
name = fields.Char(string="节点名称")
|
|
link_type = fields.Selection([('trans', '转交'), ('return', '退回')], string="节点类型")
|
|
record_id = fields.Integer()
|
|
|
|
|