[FIX] hr_payroll : Fixes the duplicate payslip problem

lp bug: https://launchpad.net/bugs/1029318 fixed

bzr revid: amp@tinyerp.com-20120726111113-0jo81xcclbusdp8g
This commit is contained in:
Amit (OpenERP) 2012-07-26 16:41:13 +05:30
parent 5e93bcd949
commit ddc19ac369
1 changed files with 3 additions and 1 deletions

View File

@ -318,7 +318,9 @@ class hr_payslip(osv.osv):
'company_id': company_id,
'period_id': False,
'basic_before_leaves': 0.0,
'basic_amount': 0.0
'basic_amount': 0.0,
'number': '',
'payslip_run_id': False,
})
return super(hr_payslip, self).copy(cr, uid, id, default, context=context)