From 9a49fa6ea8eeb5fffa43df689d97428725412e52 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Fri, 22 Oct 2010 15:01:57 +0530 Subject: [PATCH] [FIX] account bzr revid: mra@mra-laptop-20101022093157-x99vazqlb266j63e --- addons/account/installer.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/addons/account/installer.py b/addons/account/installer.py index b25a8e24c00..5bd6a881e07 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -401,13 +401,13 @@ class account_installer(osv.osv_memory): analitical_sale_ids = analytic_journal_obj.search(cr, uid, [('type','=','sale')], context=context) analitical_journal_sale = analitical_sale_ids and analitical_sale_ids[0] or False - vals_journal = { + vals_journal.update({ 'name': _('Sales Journal'), 'type': 'sale', 'code': _('SAJ'), 'sequence_id': seq_id_sale, 'analytic_journal_id': analitical_journal_sale - } + }) if obj_multi.property_account_receivable: vals_journal.update({ @@ -420,13 +420,13 @@ class account_installer(osv.osv_memory): analitical_purchase_ids = analytic_journal_obj.search(cr, uid, [('type', '=', 'purchase')], context=context) analitical_journal_purchase = analitical_purchase_ids and analitical_purchase_ids[0] or False - vals_journal = { + vals_journal.update({ 'name': _('Purchase Journal'), 'type': 'purchase', 'code': _('EXJ'), 'sequence_id': seq_id_purchase, 'analytic_journal_id': analitical_journal_purchase - } + }) if obj_multi.property_account_payable: vals_journal.update({ @@ -461,6 +461,7 @@ class account_installer(osv.osv_memory): # Purchase Refund Journal vals_journal = { + 'view_id': view_id, 'name': _('Purchase Refund Journal'), 'type': 'purchase_refund', 'refund_journal': True,