Allow to use a list of id for copy method
This commit is contained in:
1 parent
571a813c4b
commit
3354e50169
1 file changed
+2
-2
+2
-2
@@ -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()
|
||||
Reference in new issue
Block a user