From cb8ae72ba729d5146865e1d714bf88e24748abde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 1 Oct 2012 16:22:53 +0200 Subject: [PATCH] "add" operator takes a list of ids issue2804 --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index ac1a28f7bc..6ced10de3e 100644 --- a/invoice.py +++ b/invoice.py @@ -28,7 +28,7 @@ class InvoiceLine: ]) if vals['invoice']: Purchase.write(purchases, { - 'invoices': [('add', vals['invoice'])], + 'invoices': [('add', [vals['invoice']])], }) else: for purchase in purchases: