From 3354e501696ba6d82ffab6ef00e96360e13b4b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 5 Dec 2008 13:27:05 +0100 Subject: [PATCH] Allow to use a list of id for copy method --- product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product.py b/product.py index 316db2f03b..1629abc5ab 100644 --- a/product.py +++ b/product.py @@ -132,12 +132,12 @@ class Product(OSV): return res - def copy(self, cursor, user, product_id, default=None, context=None): + def copy(self, cursor, user, ids, default=None, context=None): if default is None: default = {} default = default.copy() default['products'] = False - return super(Product, self).copy(cursor, user, product_id, + return super(Product, self).copy(cursor, user, ids, default=default, context=context) Product()