diff options
| author | skh <skh@tinyerp.com> | 2011-04-06 11:39:50 +0530 |
|---|---|---|
| committer | skh <skh@tinyerp.com> | 2011-04-06 11:39:50 +0530 |
| commit | bc23be6ebaa3e8e2ef4d2e09f1bf97e73642a3af (patch) | |
| tree | 8436728e0032dff9be3ae0458ec3a73a7bef29df | |
| parent | ffee41cbedcdb4894a2028ab31d23f9b6192d2ca (diff) | |
[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
| -rw-r--r-- | addons/hr_expense/hr_expense.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
