Fix infinit loop in copy of product

This commit is contained in:
Cédric Krier
2008-11-12 17:26:42 +01:00
parent 29afc98cab
commit fa19bbed4a
+8
View File
@@ -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()