[FIX] hr_payroll: small fix in code

bzr revid: psi@tinyerp.com-20120914112756-rbzvhcaj35sz5duk
This commit is contained in:
Purnendu Singh (OpenERP) 2012-09-14 16:57:56 +05:30
parent 428259a2b6
commit d6608da313
1 changed files with 0 additions and 1 deletions

View File

@ -666,7 +666,6 @@ class hr_payslip(osv.osv):
'company_id': employee_id.company_id.id
})
struct_record = False
if not context.get('contract', False):
#fill with the first contract of the employee
contract_ids = self.get_contract(cr, uid, employee_id, date_from, date_to, context=context)