[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
This commit is contained in:
skh
2011-04-06 11:39:50 +05:30
parent ffee41cbed
commit bc23be6eba
+1 -1
View File
@@ -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: