[FIX] hr : hr_payroll_account error 6.1

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

bzr revid: bde@tinyerp.com-20110831132731-26dsntk9rphpqpca
This commit is contained in:
Christopher Ormaza 2011-08-31 18:57:31 +05:30 committed by Bharat (OpenERP)
parent 0312e68bc3
commit a3b678909d
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class hr_payslip(osv.osv):
debit_sum += debit_line[2]['debit'] - debit_line[2]['credit']
if credit_account_id:
line_ids.append(credit_line)
credit_sum += credit_line[2]['credit'] - credit_line['debit']
credit_sum += credit_line[2]['credit'] - credit_line[2]['debit']
if debit_sum > credit_sum:
adjust_credit = (0, 0, {