!2025 添加功能

Merge pull request !2025 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-03-23 08:23:41 +00:00
committed by Gitee
@@ -48,7 +48,7 @@ class HrContract(models.Model):
def _compute_wage(self):
for record in self:
if record.structure_type_id and record.yuthon_company:
wage_id = self.env['hr.salary.rule'].search([('struct_id', '=', record.structure_type_id.default_struct_id.id),
wage_id = self.env['hr.salary.rule'].search([('struct_id.name', '=', record.structure_type_id.name),
('yuthon_company','=', record.yuthon_company), ('name', '=','基本工资')])
if wage_id:
record.wage = wage_id.amount_fix