diff --git a/product.py b/product.py index d9b1c63b43..316db2f03b 100644 --- a/product.py +++ b/product.py @@ -132,4 +132,12 @@ class Product(OSV): return res + def copy(self, cursor, user, product_id, default=None, context=None): + if default is None: + default = {} + default = default.copy() + default['products'] = False + return super(Product, self).copy(cursor, user, product_id, + default=default, context=context) + Product()