[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:
Quentin (OpenERP) 2011-11-15 15:07:23 +01:00
parent 09da34e369
commit b72b197cf0
1 changed files with 4 additions and 0 deletions

View File

@ -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):