[FIX] hr_payroll: default value of 'quantity' field in payslip line must be a float (hence its parent object is a varchar and thus its default value was not compatible and breaking in web client)
bzr revid: qdp-launchpad@openerp.com-20111115140723-t4b9xcmi0av3wf5s
This commit is contained in:
parent
09da34e369
commit
b72b197cf0
|
@ -928,6 +928,10 @@ class hr_payslip_line(osv.osv):
|
|||
'total': fields.function(_calculate_total, method=True, type='float', string='Total', digits_compute=dp.get_precision('Payroll'),store=True ),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
'quantity': 1.0,
|
||||
}
|
||||
|
||||
hr_payslip_line()
|
||||
|
||||
class hr_payroll_structure(osv.osv):
|
||||
|
|
Loading…
Reference in New Issue