异动信息明细行
This commit is contained in:
@@ -88,6 +88,7 @@ class HrContract(models.Model):
|
||||
compute="_compute_is_company",
|
||||
search="_search_part_of_company",
|
||||
)
|
||||
change_ids = fields.One2many('hr.contract.change.line', 'contract_id', string="异动信息")
|
||||
|
||||
def update_version(self):
|
||||
contract_ids = self.env["hr.contract"].browse(
|
||||
@@ -418,3 +419,16 @@ class HrContract(models.Model):
|
||||
})
|
||||
|
||||
return contracts
|
||||
|
||||
|
||||
class HrContractChangeLine(models.Model):
|
||||
_name = 'hr.contract.change.line'
|
||||
_description = '异动信息明细行'
|
||||
|
||||
contract_id = fields.Many2one('hr.contract', string="关联合同")
|
||||
department_id = fields.Many2one('hr.department', string="部门")
|
||||
job_id = fields.Many2one('hr.job', string="工作岗位")
|
||||
structure_type_id = fields.Many2one('hr.payroll.structure.type', string="工资结构类型")
|
||||
salary_group_id = fields.Many2one('yuthon.salary.group', string="工资单分组")
|
||||
change_start_date = fields.Date(string="开始日期")
|
||||
change_end_date = fields.Date(string="结束日期")
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_yuthon_contract_wizard,yuthon.contract.wizard,model_yuthon_contract_wizard,,1,1,1,1
|
||||
access_hr_contract_change_line,hr.contract.change.line,model_hr_contract_change_line,,1,1,1,1
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -87,7 +87,7 @@
|
||||
<attribute name="string">工作日历</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//notebook" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
<attribute name="invisible">0</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//group[@name='top_info']" position="before">
|
||||
<group string="甲方信息">
|
||||
@@ -108,16 +108,24 @@
|
||||
<xpath expr="//group[@name='top_info']" position="attributes">
|
||||
<attribute name="string">乙方信息</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//page[@name='information']" position="replace">
|
||||
<page name="information2" string="工资信息">
|
||||
<group>
|
||||
<group>
|
||||
<field name="wage_type"/>
|
||||
<field name="schedule_pay"/>
|
||||
<field name="wage" string="基本薪资" required="False"/>
|
||||
</group>
|
||||
<group/>
|
||||
</group>
|
||||
<xpath expr="//page[@name='information']" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//page[@name='other']" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//notebook" position="inside">
|
||||
<page name="change_info" string="异动信息">
|
||||
<field name="change_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="department_id"/>
|
||||
<field name="job_id" string="岗位"/>
|
||||
<field name="structure_type_id" string="职级"/>
|
||||
<field name="salary_group_id"/>
|
||||
<field name="change_start_date"/>
|
||||
<field name="change_end_date"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user