Don't copy boms when copying product as the domain will be wrong
review748002 (transplanted from 818722680862)
This commit is contained in:
1 parent
0fc1ce70c8
commit
0ed22b30c8
1 file changed
+7
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user