20 lines
817 B
Python
20 lines
817 B
Python
from odoo import models, fields, api, exceptions, _
|
|
|
|
|
|
class YuthonDutyApproval(models.Model):
|
|
_name = 'yuthon.duty.approval'
|
|
_description = "部门责任书变更管理"
|
|
_rec_name = 'name'
|
|
|
|
name = fields.Char('标题')
|
|
creation_time = fields.Datetime(string='申请日期', default=lambda self: fields.Datetime.now())
|
|
job_id = fields.Many2one('hr.job', string="岗位")
|
|
reason_text = fields.Html(string='申请事由')
|
|
|
|
# 指标变更
|
|
change_duty_kpi_ids = fields.One2many('yuthon.kpi.line', 'change_duty_kpi_id', string="KPI变更明细")
|
|
change_duty_gs_ids = fields.One2many('yuthon.gs.line', 'change_duty_gs_id', string="GS变更明细")
|
|
index_duty_approval_ids = fields.One2many('yuthon.index.management', 'index_duty_approval_id', string="部门责任变更明细")
|
|
|
|
|