From 11fff2e50d4cf77ad90d5fb3085bff090bcfeb56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 14 Nov 2008 12:08:09 +0100 Subject: [PATCH] Allow to create more than one invoice line per purchase line --- purchase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/purchase.py b/purchase.py index 563116481c..b29dafffb9 100644 --- a/purchase.py +++ b/purchase.py @@ -185,7 +185,8 @@ class PurchaseLine(OSV): if line.analytic_accounts: selection_id = account_selection_obj.copy(cursor, user, line.analytic_accounts.id, context=context) - res['analytic_accounts'] = selection_id + for vals in res: + vals['analytic_accounts'] = selection_id return res PurchaseLine()