Add fields kitchen and bar in form product

This commit is contained in:
cosmos 2023-08-11 18:05:25 -05:00
parent e18d857ed6
commit 4e0c39fd78
3 changed files with 10 additions and 0 deletions

View File

@ -17,3 +17,7 @@ msgstr "Lista de Materiales"
msgctxt "field:product.template,tip:" msgctxt "field:product.template,tip:"
msgid "Tip" msgid "Tip"
msgstr "Propina" msgstr "Propina"
msgctxt "field:product.template,kitchen:"
msgid "Kitchen"
msgstr "Cocina"

View File

@ -10,5 +10,7 @@ class Product(metaclass=PoolMeta):
pizza = fields.Boolean("Pizza") pizza = fields.Boolean("Pizza")
pizza_topping = fields.Boolean("Topping Pizza") pizza_topping = fields.Boolean("Topping Pizza")
tip = fields.Boolean("Tip") tip = fields.Boolean("Tip")
kitchen = fields.Boolean("Kitchen")
bar = fields.Boolean("Bar")
boms = fields.Many2One('production.bom', "Boms", boms = fields.Many2One('production.bom', "Boms",
states={'required': Eval('producible', True)}) states={'required': Eval('producible', True)})

View File

@ -9,6 +9,10 @@
<field name="pizza_topping"/> <field name="pizza_topping"/>
<label name="tip"/> <label name="tip"/>
<field name="tip"/> <field name="tip"/>
<label name="kitchen"/>
<field name="kitchen"/>
<label name="bar"/>
<field name="bar"/>
<newline/> <newline/>
<label name="boms"/> <label name="boms"/>
<field name="boms" xexpand="1"/> <field name="boms" xexpand="1"/>