Minor fix, update version

This commit is contained in:
oscar alvarez 2023-01-30 18:37:18 -05:00
parent b3603bf164
commit b321a5428a
2 changed files with 8 additions and 4 deletions

View File

@ -490,9 +490,13 @@ class Payroll(metaclass=PoolMeta):
super(Payroll, self).set_preliquidation(extras, discounts)
self.save()
if extras.get('wage_shift_fixed'):
wg = extras.get('wage_shift_fixed')
line_ = self.get_line(wg['wage'], wg['qty'], wg['unit_value'])
PayrollLine.create([line_])
# Shifts fixed must be a list of wage_shift_fixed
shifts_fixed = extras.get('wage_shift_fixed')
to_create = []
for wg in shifts_fixed:
to_create.append(
self.get_line(wg['wage'], wg['qty'], wg['unit_value']))
PayrollLine.create(to_create)
self.update_wage_no_salary()
self.recompute_lines()

View File

@ -1,5 +1,5 @@
[tryton]
version=6.0.4
version=6.0.5
depends:
company
account