From 562598d5c113f314a305d98423dccc8f03119bc8 Mon Sep 17 00:00:00 2001 From: "Rucha (Open ERP)" Date: Tue, 6 Sep 2011 18:39:24 +0530 Subject: [PATCH] [REF]: account: l10n fullness and inheritancy : Improvement in function name bzr revid: rpa@tinyerp.com-20110906130924-mxh7k1vse5dvk9bv --- addons/account/account.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 507a2a8f9f1..cf290f2ad36 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -2864,7 +2864,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): res['fields'][field]['selection'] = template_select return res - def journals_already_created(self, cr, uid, vals_journal, company_id, context=None): + def check_created_journals(self, cr, uid, vals_journal, company_id, context=None): """ This method used for checking journals already created or not. If not then create new journal. """ @@ -2915,7 +2915,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): 'default_credit_account_id': income_acc_id, 'default_debit_account_id': income_acc_id }) - self.journals_already_created(cr, uid, vals_journal, company_id, context=context) + self.check_created_journals(cr, uid, vals_journal, company_id, context=context) # Purchase Journal analytical_purchase_ids = analytic_journal_obj.search(cr,uid,[('type','=','purchase')], context=context) @@ -2935,7 +2935,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): 'default_credit_account_id': expense_acc_id, 'default_debit_account_id': expense_acc_id }) - self.journals_already_created(cr, uid, vals_journal, company_id, context=context) + self.check_created_journals(cr, uid, vals_journal, company_id, context=context) # Creating Journals Sales Refund and Purchase Refund data = obj_data.get_object_reference(cr, uid, 'account', 'account_sp_refund_journal_view') @@ -2955,7 +2955,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): 'default_credit_account_id': income_acc_id, 'default_debit_account_id': income_acc_id }) - self.journals_already_created(cr, uid, vals_journal, company_id, context=context) + self.check_created_journals(cr, uid, vals_journal, company_id, context=context) # Purchase Refund Journal vals_journal = { @@ -2971,7 +2971,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): 'default_credit_account_id': expense_acc_id, 'default_debit_account_id': expense_acc_id }) - self.journals_already_created(cr, uid, vals_journal, company_id, context=context) + self.check_created_journals(cr, uid, vals_journal, company_id, context=context) # Miscellaneous Journal data = obj_data.get_object_reference(cr, uid, 'account', 'account_journal_view') @@ -2987,7 +2987,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): 'analytic_journal_id': analytical_miscellaneous_ids and analytical_miscellaneous_ids[0] or False, 'company_id': company_id } - self.journals_already_created(cr, uid, vals_journal, company_id, context=context) + self.check_created_journals(cr, uid, vals_journal, company_id, context=context) # Opening Entries Journal if template.property_account_income_opening and template.property_account_expense_opening: @@ -3001,7 +3001,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): 'default_credit_account_id': credit_acc_id, 'default_debit_account_id': debit_acc_id } - self.journals_already_created(cr, uid, vals_journal, company_id, context=context) + self.check_created_journals(cr, uid, vals_journal, company_id, context=context) data = obj_data.get_object_reference(cr, uid, 'account', 'account_journal_bank_view_multi') view_id_cur = data and data[1] or False