From d3ec32a7443a1df16aeaa32f0bd57fd9e0edcf00 Mon Sep 17 00:00:00 2001 From: "Ujjvala Collins (OpenERP)" Date: Mon, 20 Jun 2011 12:08:39 +0530 Subject: [PATCH] [FIX] account: Fixed problem of opening the supplier invoice views using refund wizard. bzr revid: uco@tinyerp.com-20110620063839-6236qx047fcb7zon --- addons/account/wizard/account_invoice_refund.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/wizard/account_invoice_refund.py b/addons/account/wizard/account_invoice_refund.py index 5fd38be0ab0..d6f24aba26f 100644 --- a/addons/account/wizard/account_invoice_refund.py +++ b/addons/account/wizard/account_invoice_refund.py @@ -205,9 +205,9 @@ class account_invoice_refund(osv.osv_memory): inv_obj.write(cr, uid, [inv_id], data['value']) created_inv.append(inv_id) xml_id = (inv.type == 'out_refund') and 'action_invoice_tree1' or \ - (inv.type == 'in_invoice') and 'action_invoice_tree2' or \ + (inv.type == 'in_refund') and 'action_invoice_tree2' or \ (inv.type == 'out_invoice') and 'action_invoice_tree3' or \ - (inv.type == 'in_refund') and 'action_invoice_tree4' + (inv.type == 'in_invoice') and 'action_invoice_tree4' result = mod_obj.get_object_reference(cr, uid, 'account', xml_id) id = result and result[1] or False result = act_obj.read(cr, uid, id, context=context)