mirror of
https://bitbucket.org/presik/trytonpsk-staff_payroll_co.git
synced 2023-12-14 06:42:56 +01:00
minor fix
This commit is contained in:
parent
149208ae3f
commit
cf9b48eb88
|
@ -669,7 +669,10 @@ class LiquidationLine(ModelSQL, ModelView):
|
|||
employee = self.liquidation.employee
|
||||
end = self.liquidation.end
|
||||
Payroll = Pool().get('staff.payroll')
|
||||
res = Payroll.get_salary_average(end, employee, contract, self.wage) * 30
|
||||
try:
|
||||
res = Payroll.get_salary_average(end, employee, contract, self.wage) * 30
|
||||
except:
|
||||
res = 0
|
||||
return res
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue