From 4f28c87d46705faa8f2e3953fbc9d70b806d7dbe Mon Sep 17 00:00:00 2001 From: mtr Date: Fri, 27 May 2011 10:46:11 +0530 Subject: [PATCH] [IMP] hr_payroll_account: changed variable name and string for adjustment moves bzr revid: mtr@mtr-20110527051611-plh7e43c6n9brx5x --- addons/hr_payroll_account/hr_payroll_account.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/hr_payroll_account/hr_payroll_account.py b/addons/hr_payroll_account/hr_payroll_account.py index b210365c6eb..cf43cb01679 100644 --- a/addons/hr_payroll_account/hr_payroll_account.py +++ b/addons/hr_payroll_account/hr_payroll_account.py @@ -141,29 +141,29 @@ class hr_payslip(osv.osv): line_ids.append(credit_line) if debit_sum > credit_sum: - bal_credit_line = (0,0,{ + adjust_credit = (0,0,{ 'date': timenow, 'journal_id': slip.journal_id.id, 'period_id': period_id, - 'name': 'Balancing Entry', + 'name': 'Adjustment Entry', 'partner_id': partner_id, 'account_id': slip.journal_id.default_credit_account_id.id, 'debit': 0.0, 'credit': debit_sum - credit_sum, }) - line_ids.append(bal_credit_line) + line_ids.append(adjust_credit) else: - bal_debit_line = (0,0,{ + adjust_debit = (0,0,{ 'date': timenow, 'journal_id': slip.journal_id.id, 'period_id': period_id, - 'name': 'Balancing Entry', + 'name': 'Adjustment Entry', 'partner_id': partner_id, 'account_id': slip.journal_id.default_debit_account_id.id, 'debit': 0.0, 'credit': credit_sum - debit_sum, }) - line_ids.append(bal_debit_line) + line_ids.append(adjust_debit) move.update({'line_id': line_ids}) move_id = move_pool.create(cr, uid, move, context=context)