From 6babd07f907eab5c80089ae7c7f2c87536b6b405 Mon Sep 17 00:00:00 2001 From: "Kirti Savalia (OpenERP)" Date: Mon, 28 Nov 2011 14:52:35 +0530 Subject: [PATCH] [IMP]:in refund wizard remove the context key bzr revid: ksa@tinyerp.com-20111128092235-iriwoz7nq5trxsy5 --- addons/account/wizard/account_invoice_refund.py | 1 + addons/sale/sale_view.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/wizard/account_invoice_refund.py b/addons/account/wizard/account_invoice_refund.py index 8de1dc79bfb..ee6635d6d3c 100644 --- a/addons/account/wizard/account_invoice_refund.py +++ b/addons/account/wizard/account_invoice_refund.py @@ -62,6 +62,7 @@ class account_invoice_refund(osv.osv_memory): 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') 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 diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml index e8fcb656483..4669a9d7d9c 100644 --- a/addons/sale/sale_view.xml +++ b/addons/sale/sale_view.xml @@ -223,7 +223,7 @@ - +