Merge branch 'master' into dev_zhou
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user