add boms to template product

This commit is contained in:
sinergia 2023-06-24 10:29:11 -05:00
parent 8ae0930cb8
commit 975b64f44f
4 changed files with 12 additions and 2 deletions

View File

@ -6,6 +6,10 @@ msgctxt "field:product.template,pizza:"
msgid "Pizza"
msgstr "Pizza"
msgctxt "field:product.template,pizza:"
msgctxt "field:product.template,pizza_topping:"
msgid "Topping Pizza"
msgstr "Adiciónes"
msgctxt "field:product.template,boms:"
msgid "Boms"
msgstr "Lista de Materiales"

View File

@ -7,4 +7,5 @@ class Product(metaclass=PoolMeta):
__name__ = 'product.template'
pizza = fields.Boolean("Pizza")
Pizza_topping = fields.Boolean("Topping Pizza")
pizza_topping = fields.Boolean("Topping Pizza")
boms = fields.Many2One('production.bom', "Boms")

View File

@ -4,6 +4,8 @@ depends:
ir
product
sale
sale_supply_production
production
xml:
product.xml
sale.xml

View File

@ -7,5 +7,8 @@
<field name="pizza"/>
<label name="pizza_topping"/>
<field name="pizza_topping"/>
<newline/>
<label name="boms" expand="1"/>
<field name="boms" expand="1"/>
</xpath>
</data>