From 975b64f44f8abee9d7c695700b6fb7fe1fc2dac2 Mon Sep 17 00:00:00 2001 From: sinergia Date: Sat, 24 Jun 2023 10:29:11 -0500 Subject: [PATCH] add boms to template product --- locale/es.po | 6 +++++- product.py | 3 ++- tryton.cfg | 2 ++ view/product_form.xml | 3 +++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/locale/es.po b/locale/es.po index a6c5e4d..72b796d 100644 --- a/locale/es.po +++ b/locale/es.po @@ -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" \ No newline at end of file diff --git a/product.py b/product.py index c9f8d6c..4713893 100644 --- a/product.py +++ b/product.py @@ -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") diff --git a/tryton.cfg b/tryton.cfg index 8f8822e..8ef765c 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -4,6 +4,8 @@ depends: ir product sale + sale_supply_production + production xml: product.xml sale.xml diff --git a/view/product_form.xml b/view/product_form.xml index d715aa5..791a699 100644 --- a/view/product_form.xml +++ b/view/product_form.xml @@ -7,5 +7,8 @@