Don't copy boms when copying product as the domain will be wrong
review748002 (transplanted from 818722680862dd9d095384b190b3aea2ef8b6716)
This commit is contained in:
1 parent
fd7a37bd92
commit
25bf57c9e7
1 file changed
+8
@@ -42,6 +42,14 @@ class Product:
|
||||
return False
|
||||
return True
|
||||
|
||||
@classmethod
|
||||
def copy(cls, products, default=None):
|
||||
if default is None:
|
||||
default = {}
|
||||
default = default.copy()
|
||||
default.setdefault('boms', None)
|
||||
return super(Product, cls).copy(products, default=default)
|
||||
|
||||
|
||||
class ProductBom(ModelSQL, ModelView):
|
||||
'Product - BOM'
|
||||
|
||||
Reference in new issue
Block a user