From: Raphael Collet Date: Mon, 19 Dec 2011 14:53:05 +0000 (+0100) Subject: [MERGE] lp:872686 (account: fix refund wizard) X-Git-Tag: 6.1.0-rc1-addons~555 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=248654d97e88a9e45506791a738be1ae3e801df3;p=odoo%2Fodoo.git [MERGE] lp:872686 (account: fix refund wizard) bzr revid: rco@openerp.com-20111219145305-0w1ur88brnpovj6x --- 248654d97e88a9e45506791a738be1ae3e801df3 diff --cc addons/account/wizard/account_invoice_refund.py index 436ea20,ecd6437..ec74320 --- a/addons/account/wizard/account_invoice_refund.py +++ b/addons/account/wizard/account_invoice_refund.py @@@ -62,6 -62,7 +62,8 @@@ class account_invoice_refund(osv.osv_me def fields_view_get(self, cr, uid, view_id=None, view_type=False, context=None, toolbar=False, submenu=False): journal_obj = self.pool.get('account.journal') user_obj = self.pool.get('res.users') - context.pop('form_view_ref') ++ # remove the entry with key 'form_view_ref', otherwise fields_view_get crashes ++ context.pop('form_view_ref', None) res = super(account_invoice_refund,self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu) type = context.get('type', 'out_invoice') company_id = user_obj.browse(cr, uid, uid, context=context).company_id.id