Fix infinit loop in copy of product
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user