From bc23be6ebaa3e8e2ef4d2e09f1bf97e73642a3af Mon Sep 17 00:00:00 2001 From: skh Date: Wed, 6 Apr 2011 11:39:50 +0530 Subject: [PATCH] [FIX] [PS] Generating an invoice from an expense doesn't create a correct supplier invoice lp bug: https://launchpad.net/bugs/751296 fixed bzr revid: skh@tinyerp.com-20110406060950-x1ndypq04szpsmvr --- addons/hr_expense/hr_expense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_expense/hr_expense.py b/addons/hr_expense/hr_expense.py index 1fdbb56f40b..e366d7a6afd 100644 --- a/addons/hr_expense/hr_expense.py +++ b/addons/hr_expense/hr_expense.py @@ -127,7 +127,7 @@ class hr_expense_expense(osv.osv): def invoice(self, cr, uid, ids, context=None): wf_service = netsvc.LocalService("workflow") mod_obj = self.pool.get('ir.model.data') - res = mod_obj.get_object_reference(cr, uid, 'account', 'invoice_form') + res = mod_obj.get_object_reference(cr, uid, 'account', 'invoice_supplier_form') res_id = res and res[1] or False, inv_ids = [] for id in ids: