Don't copy boms when copying product as the domain will be wrong

review748002
(transplanted from 818722680862)
This commit is contained in:
Cédric Krier committed 2013-04-06 13:01:11 +02:00
1 parent 0fc1ce70c8
commit 0ed22b30c8
1 file changed
+7
+7
View File
@@ -40,6 +40,13 @@ class Product(ModelSQL, ModelView):
return False
return True
def copy(self, ids, default=None):
if default is None:
default = {}
default = default.copy()
default.setdefault('boms', None)
return super(Product, self).copy(ids, default=default)
Product()