[FIX] hr_expence: creation of inovice from form
authormra (Open ERP) <mra@tinyerp.com>
Wed, 19 May 2010 09:45:38 +0000 (15:15 +0530)
committermra (Open ERP) <mra@tinyerp.com>
Wed, 19 May 2010 09:45:38 +0000 (15:15 +0530)
bzr revid: mra@tinyerp.com-20100519094538-8wsagvoa5zhb6vsl

addons/hr_expense/hr_expense.py

index 4e1e303..a85b3be 100644 (file)
@@ -131,7 +131,7 @@ class hr_expense_expense(osv.osv):
 
                 lines.append((0, False, {
                     'name': l.name,
-                    'account_id': acc,
+                    'account_id': acc.id,
                     'price_unit': l.unit_amount,
                     'quantity': l.unit_quantity,
                     'uos_id': l.uom_id.id,