Merge pull request !4 from 李鹏宇/pengyuthon-dev
This commit is contained in:
李鹏宇
2025-03-20 01:42:40 +00:00
committed by Gitee
+1 -1
View File
@@ -22,7 +22,7 @@ class HrSalaryRuleCategory(models.Model):
raise ValidationError(_('Error! You cannot create recursive hierarchy of Salary Rule Category.'))
def _sum_salary_rule_category(self, localdict, amount):
self.ensure_one()
# self.ensure_one()
if self.parent_id:
localdict = self.parent_id._sum_salary_rule_category(localdict, amount)
localdict['categories'][self.code] = localdict['categories'][self.code] + amount