add production phantom support

This commit is contained in:
Àngel Àlvarez 2022-07-19 13:04:53 +02:00
parent 90a9de04db
commit 4fa1c8346c
2 changed files with 4 additions and 0 deletions

View File

@ -864,6 +864,8 @@ class Property(tree(separator=' / '), sequence_ordered(), ModelSQL, ModelView):
product_bom = ProductBom()
product_bom.product = product
product_bom.bom = bom
if 'phantom' in Product._fields:
product.phantom = True
if route:
product_bom.route = route
res_obj.append(product_bom)

View File

@ -10,6 +10,8 @@ depends:
purchase
sale_product_customer
sale_customer_product_restrict
extras_depend:
production_phantom
xml:
configurator.xml
product.xml