Minor fix, update version
This commit is contained in:
parent
b3603bf164
commit
b321a5428a
10
payroll.py
10
payroll.py
|
@ -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()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=6.0.4
|
||||
version=6.0.5
|
||||
depends:
|
||||
company
|
||||
account
|
||||
|
|
Loading…
Reference in New Issue