添加功能

This commit is contained in:
李鹏宇
2026-01-26 17:49:43 +08:00
parent 8a90b3ecfe
commit 13dd516406
2 changed files with 3 additions and 3 deletions
@@ -71,8 +71,8 @@ class YuthonOnboardApproval(models.Model):
representatives = fields.Char(related='party_id.representatives', string='法定代表人或委托代理人')
economy_type = fields.Char(related='party_id.economy_type', string='经济类型')
address = fields.Text(related='party_id.address', string='通讯地址')
phone = fields.Char(related='information_form_id.phone', string='联系电话')
card = fields.Char(related='information_form_id.id_card', string='身份证号码')
phone = fields.Char(string='联系电话', required=True)
card = fields.Char(string='身份证号码', required=True)
salary_group_id = fields.Many2one(
"yuthon.salary.group", string="工资单分组", store=True, index=True
)
@@ -80,7 +80,7 @@
<field name="is_office"/>
</group>
<group>
<field name="department_id1" domain = "[('company_id', '=', company_id)] if is_this_company else []" options="{'no_create': True}"/>
<field name="department_id1" domain = "[('company_id', '=', company_id)] if is_company else []" options="{'no_create': True}"/>
<field name="contract_type" invisible="employment_form == 'formal' or not employment_form"/>
<field name="contract_type1" invisible="1"/>
<field name="salary_group_id"/>