-
-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] nutritional_info: New module to add nutritional information
- Loading branch information
1 parent
9c20a71
commit 22d5f11
Showing
23 changed files
with
1,294 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
================ | ||
Nutritional Info | ||
================ | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Production/Stable | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github | ||
:target: https://github.com/OCA/product-attribute/tree/15.0/nutritional_info | ||
:alt: OCA/product-attribute | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-nutritional_info | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/product-attribute&target_branch=15.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module allows to set the nutritional information for a given product. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
To define the nutritional information, you have to define first the type of information | ||
that can be filled on the products. | ||
|
||
To achieve this: | ||
|
||
- Go to Settings > General Settings > Nutritional Information | ||
- Click on Nutritional Product Types | ||
- Create the types to be used in the order they should appear on reports. | ||
|
||
Usage | ||
===== | ||
|
||
To use this module you have to: | ||
|
||
- Create or edit a product variant or product template with just a variant. | ||
- Go to Nutrition page | ||
- Select the type and the value for the given product. | ||
|
||
Now you can print the "Nutritional Info" report. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us smashing it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20nutritional_info%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Tecnativa | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* `Tecnativa <https://www.tecnativa.com>`_ | ||
|
||
* Carlos Roca | ||
* Sergio Teruel | ||
* Carlos Dauden | ||
* Pedro M. Baeza | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
.. |maintainer-CarlosRoca13| image:: https://github.com/CarlosRoca13.png?size=40px | ||
:target: https://github.com/CarlosRoca13 | ||
:alt: CarlosRoca13 | ||
|
||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-CarlosRoca13| | ||
|
||
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/15.0/nutritional_info>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright 2023 Tecnativa - Carlos Roca | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Nutritional Info", | ||
"summary": "Nutritional information.", | ||
"version": "15.0.1.0.0", | ||
"development_status": "Production/Stable", | ||
"category": "Technical Settings", | ||
"website": "https://github.com/OCA/product-attribute", | ||
"author": "Tecnativa, Odoo Community Association (OCA)", | ||
"maintainers": ["CarlosRoca13"], | ||
"license": "AGPL-3", | ||
"depends": ["product"], | ||
"data": [ | ||
"report/report_nutritional_info.xml", | ||
"security/ir.model.access.csv", | ||
"views/nutritional_type_view.xml", | ||
"views/product_views.xml", | ||
"views/res_config_settings_view.xml", | ||
], | ||
"application": False, | ||
"installable": True, | ||
"assets": { | ||
"web.report_assets_common": [ | ||
"nutritional_info/static/src/scss/nutrition_table_style.scss", | ||
] | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * nutritional_info | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-04-27 13:12+0000\n" | ||
"PO-Revision-Date: 2023-04-27 15:21+0200\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"Language: es\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
"X-Generator: Poedit 3.2.2\n" | ||
|
||
#. module: nutritional_info | ||
#: model_terms:ir.ui.view,arch_db:nutritional_info.res_config_settings_view_form | ||
msgid "<span class=\"o_form_label\">Configure your nutritional types</span>" | ||
msgstr "<span class=\"o_form_label\">Configura tus tipos nutricionales</span>" | ||
|
||
#. module: nutritional_info | ||
#: model_terms:ir.ui.view,arch_db:nutritional_info.nutritional_info_table | ||
msgid "<span>)</span>" | ||
msgstr "<span>)</span>" | ||
|
||
#. module: nutritional_info | ||
#: model_terms:ir.ui.view,arch_db:nutritional_info.nutritional_info_table | ||
msgid "<span>Nutritional Information (</span>" | ||
msgstr "<span>Información nutricional (</span>" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_type__create_uid | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_value__create_uid | ||
msgid "Created by" | ||
msgstr "Creado por" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_type__create_date | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_value__create_date | ||
msgid "Created on" | ||
msgstr "Creado el" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_type__display_name | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_value__display_name | ||
msgid "Display Name" | ||
msgstr "Nombre mostrado" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_type__id | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_value__id | ||
msgid "ID" | ||
msgstr "ID" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_type____last_update | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_value____last_update | ||
msgid "Last Modified on" | ||
msgstr "Última modificación el" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_type__write_uid | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_value__write_uid | ||
msgid "Last Updated by" | ||
msgstr "Última actualización por" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_type__write_date | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_value__write_date | ||
msgid "Last Updated on" | ||
msgstr "Última actualización el" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_type__name | ||
msgid "Name" | ||
msgstr "Nombre" | ||
|
||
#. module: nutritional_info | ||
#: model_terms:ir.ui.view,arch_db:nutritional_info.product_normal_form_view | ||
#: model_terms:ir.ui.view,arch_db:nutritional_info.product_template_only_form_view | ||
msgid "Nutrition" | ||
msgstr "Nutrición" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.actions.report,name:nutritional_info.action_nutritional_info_product_report | ||
#: model:ir.actions.report,name:nutritional_info.action_nutritional_info_template_report | ||
msgid "Nutritional Info" | ||
msgstr "Información nutricional" | ||
|
||
#. module: nutritional_info | ||
#: model_terms:ir.ui.view,arch_db:nutritional_info.res_config_settings_view_form | ||
msgid "Nutritional Information" | ||
msgstr "Información nutricional" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_product_product__nutritional_reference_uom | ||
#: model:ir.model.fields,field_description:nutritional_info.field_product_template__nutritional_reference_uom | ||
msgid "Nutritional Reference Uom" | ||
msgstr "Unidad de medida de referencia nutricional" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.actions.act_window,name:nutritional_info.action_nutritional_type | ||
#: model_terms:ir.ui.view,arch_db:nutritional_info.res_config_settings_view_form | ||
msgid "Nutritional Types" | ||
msgstr "Tipos nutricionales" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_product_product__nutritional_value_ids | ||
#: model:ir.model.fields,field_description:nutritional_info.field_product_template__nutritional_value_ids | ||
msgid "Nutritional Value" | ||
msgstr "Valor nutricional" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_product_product__nutritional_reference_qty | ||
#: model:ir.model.fields,field_description:nutritional_info.field_product_template__nutritional_reference_qty | ||
msgid "Nutritional reference quantity" | ||
msgstr "Cantidad de referencia nutricional" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model,name:nutritional_info.model_nutritional_value | ||
msgid "Nutritional values for a given product" | ||
msgstr "Valores nutricionales de un producto determinado" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model,name:nutritional_info.model_product_product | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_value__product_id | ||
msgid "Product" | ||
msgstr "Producto" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model,name:nutritional_info.model_product_template | ||
msgid "Product Template" | ||
msgstr "Plantilla de producto" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_type__sequence | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_value__sequence | ||
msgid "Sequence" | ||
msgstr "Secuencia" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_value__type_id | ||
msgid "Type" | ||
msgstr "Tipo" | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model,name:nutritional_info.model_nutritional_type | ||
msgid "Types used to inform about nutritional values at products." | ||
msgstr "Tipos utilizados para informar sobre los valores nutricionales de los productos." | ||
|
||
#. module: nutritional_info | ||
#: model:ir.model.fields,field_description:nutritional_info.field_nutritional_value__value | ||
msgid "Value" | ||
msgstr "Valor" |
Oops, something went wrong.