diff --git a/nfu_product_custom_fields/README.rst b/nfu_product_custom_fields/README.rst new file mode 100644 index 0000000..0e247a1 --- /dev/null +++ b/nfu_product_custom_fields/README.rst @@ -0,0 +1,61 @@ +========================= +NFU Product Custom Fields +========================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:134ea25670afe61406a31cb8ab2661c3b00137b759c76a3241a78d7e56d21ebe + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-bruecksen%2Fife_nfu-lightgray.png?logo=github + :target: https://github.com/bruecksen/ife_nfu/tree/16.0/nfu_product_custom_fields + :alt: bruecksen/ife_nfu + +|badge1| |badge2| |badge3| + +This module adds additional Fields to Products to store information from BNN + +**Table of contents** + +.. contents:: + :local: + +Changelog +========= + + +:1.0.0 Initial module. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* BAKEUP + +Maintainers +~~~~~~~~~~~ + +This module is part of the `bruecksen/ife_nfu `_ project on GitHub. + +You are welcome to contribute. diff --git a/nfu_product_custom_fields/__init__.py b/nfu_product_custom_fields/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/nfu_product_custom_fields/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/nfu_product_custom_fields/__manifest__.py b/nfu_product_custom_fields/__manifest__.py new file mode 100644 index 0000000..55b2494 --- /dev/null +++ b/nfu_product_custom_fields/__manifest__.py @@ -0,0 +1,13 @@ +{ + "name": "NFU Product Custom Fields", + "summary": """This Module Adds Custom Fields To Products""", + "author": "BAKEUP", + "website": "https://www.bakeup.org", + "category": "Product", + "version": "16.0.1.0.0", + "depends": ["product"], + "data": ["views/product_template_bnn_view.xml"], + "assets": {}, + "license": "LGPL-3", + "installable": True, +} diff --git a/nfu_product_custom_fields/i18n/de.po b/nfu_product_custom_fields/i18n/de.po new file mode 100644 index 0000000..1199556 --- /dev/null +++ b/nfu_product_custom_fields/i18n/de.po @@ -0,0 +1,64 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * nfu_product_custom_fields +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-06-17 22:13+0000\n" +"PO-Revision-Date: 2024-06-18 00:15+0200\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: de_DE\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.4.2\n" + +#. module: nfu_product_custom_fields +#. odoo-python +#: code:addons/nfu_product_custom_fields/models/product_template.py:0 +#: model:ir.model.fields,field_description:nfu_product_custom_fields.field_product_product__additional_information +#: model:ir.model.fields,field_description:nfu_product_custom_fields.field_product_template__additional_information +#, python-format +msgid "Additional Information" +msgstr "Zusätzliche Informationen" + +#. module: nfu_product_custom_fields +#: model_terms:ir.ui.view,arch_db:nfu_product_custom_fields.product_template_bnn_view +msgid "BNN Information" +msgstr "BNN Informationen" + +#. module: nfu_product_custom_fields +#. odoo-python +#: code:addons/nfu_product_custom_fields/models/product_template.py:0 +#: model:ir.model.fields,field_description:nfu_product_custom_fields.field_product_product__origin +#: model:ir.model.fields,field_description:nfu_product_custom_fields.field_product_template__origin +#, python-format +msgid "Origin" +msgstr "Herkunft" + +#. module: nfu_product_custom_fields +#: model:ir.model,name:nfu_product_custom_fields.model_product_template +msgid "Product" +msgstr "Produkt" + +#. module: nfu_product_custom_fields +#. odoo-python +#: code:addons/nfu_product_custom_fields/models/product_template.py:0 +#: model:ir.model.fields,field_description:nfu_product_custom_fields.field_product_product__quality +#: model:ir.model.fields,field_description:nfu_product_custom_fields.field_product_template__quality +#, python-format +msgid "Quality" +msgstr "Qualität" + +#. module: nfu_product_custom_fields +#. odoo-python +#: code:addons/nfu_product_custom_fields/models/product_template.py:0 +#: model:ir.model.fields,field_description:nfu_product_custom_fields.field_product_product__manufacturer_abbr +#: model:ir.model.fields,field_description:nfu_product_custom_fields.field_product_template__manufacturer_abbr +#, python-format +msgid "Manufacturer Abbreviation" +msgstr "Herstellerkürzel" \ No newline at end of file diff --git a/nfu_product_custom_fields/models/__init__.py b/nfu_product_custom_fields/models/__init__.py new file mode 100644 index 0000000..e8fa8f6 --- /dev/null +++ b/nfu_product_custom_fields/models/__init__.py @@ -0,0 +1 @@ +from . import product_template diff --git a/nfu_product_custom_fields/models/product_template.py b/nfu_product_custom_fields/models/product_template.py new file mode 100644 index 0000000..4635015 --- /dev/null +++ b/nfu_product_custom_fields/models/product_template.py @@ -0,0 +1,10 @@ +from odoo import fields, models + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + additional_information = fields.Char() + quality = fields.Char() + origin = fields.Char() + manufacturer_abbr = fields.Char(string="Maufacturer Abbreviation") diff --git a/nfu_product_custom_fields/readme/CONTRIBUTERS.rst b/nfu_product_custom_fields/readme/CONTRIBUTERS.rst new file mode 100644 index 0000000..000b748 --- /dev/null +++ b/nfu_product_custom_fields/readme/CONTRIBUTERS.rst @@ -0,0 +1 @@ +Ole Jancke \ No newline at end of file diff --git a/nfu_product_custom_fields/readme/DESCRIPTION.rst b/nfu_product_custom_fields/readme/DESCRIPTION.rst new file mode 100644 index 0000000..beafad1 --- /dev/null +++ b/nfu_product_custom_fields/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module adds additional Fields to Products to store information from BNN \ No newline at end of file diff --git a/nfu_product_custom_fields/readme/HISTORY.rst b/nfu_product_custom_fields/readme/HISTORY.rst new file mode 100644 index 0000000..3e6c92b --- /dev/null +++ b/nfu_product_custom_fields/readme/HISTORY.rst @@ -0,0 +1,2 @@ + +:1.0.0 Initial module. \ No newline at end of file diff --git a/nfu_product_custom_fields/static/description/icon.png b/nfu_product_custom_fields/static/description/icon.png new file mode 100644 index 0000000..1267712 Binary files /dev/null and b/nfu_product_custom_fields/static/description/icon.png differ diff --git a/nfu_product_custom_fields/static/description/index.html b/nfu_product_custom_fields/static/description/index.html new file mode 100644 index 0000000..316beb1 --- /dev/null +++ b/nfu_product_custom_fields/static/description/index.html @@ -0,0 +1,414 @@ + + + + + +NFU Product Custom Fields + + + +
+

NFU Product Custom Fields

+ + +

Beta License: LGPL-3 bruecksen/ife_nfu

+

This module adds additional Fields to Products to store information from BNN

+

Table of contents

+ +
+

Changelog

+

:1.0.0 Initial module.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • BAKEUP
  • +
+
+
+

Maintainers

+

This module is part of the bruecksen/ife_nfu project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/nfu_product_custom_fields/views/product_template_bnn_view.xml b/nfu_product_custom_fields/views/product_template_bnn_view.xml new file mode 100644 index 0000000..cb806f7 --- /dev/null +++ b/nfu_product_custom_fields/views/product_template_bnn_view.xml @@ -0,0 +1,20 @@ + + + + product.template.bnn.view + product.template + + + + + + + + + + + + + + +