Fix for properties return browse record instead of (id, name)
authorced <>
Wed, 23 Jan 2008 15:28:40 +0000 (15:28 +0000)
committerced <>
Wed, 23 Jan 2008 15:28:40 +0000 (15:28 +0000)
bzr revid: ced-7a725b852123903a774190e1a342491fd4f522f7

addons/hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py

index da10281..fd5946f 100644 (file)
@@ -212,7 +212,7 @@ class final_invoice_create(wizard.interface):
                                                'name': product.name,
                                                'product_id': product_id,
                                                'uos_id': product.uom_id.id,
-                                               'account_id': account_id[0],
+                                               'account_id': account_id,
                                        }
                                        pool.get('account.invoice.line').create(cr, uid, curr_line)
                                        if account.amount_max < amount_total: