From 2479cfaac42527fb61e1d1dc54feb86b2b30cd12 Mon Sep 17 00:00:00 2001 From: OriolMForgeFlow Date: Wed, 29 Nov 2023 10:09:29 +0100 Subject: [PATCH] [ADD] edi_product_oca --- edi_product_oca/README.rst | 76 ++++ edi_product_oca/__init__.py | 1 + edi_product_oca/__manifest__.py | 17 + edi_product_oca/models/__init__.py | 2 + edi_product_oca/models/product_product.py | 9 + edi_product_oca/models/product_template.py | 9 + edi_product_oca/readme/CONTRIBUTORS.rst | 1 + edi_product_oca/readme/DESCRIPTION.rst | 1 + edi_product_oca/static/description/index.html | 421 ++++++++++++++++++ edi_product_oca/views/product_views.xml | 35 ++ .../odoo/addons/edi_product_oca | 1 + setup/edi_product_oca/setup.py | 6 + 12 files changed, 579 insertions(+) create mode 100644 edi_product_oca/README.rst create mode 100644 edi_product_oca/__init__.py create mode 100644 edi_product_oca/__manifest__.py create mode 100644 edi_product_oca/models/__init__.py create mode 100644 edi_product_oca/models/product_product.py create mode 100644 edi_product_oca/models/product_template.py create mode 100644 edi_product_oca/readme/CONTRIBUTORS.rst create mode 100644 edi_product_oca/readme/DESCRIPTION.rst create mode 100644 edi_product_oca/static/description/index.html create mode 100644 edi_product_oca/views/product_views.xml create mode 120000 setup/edi_product_oca/odoo/addons/edi_product_oca create mode 100644 setup/edi_product_oca/setup.py diff --git a/edi_product_oca/README.rst b/edi_product_oca/README.rst new file mode 100644 index 0000000000..610a8a4874 --- /dev/null +++ b/edi_product_oca/README.rst @@ -0,0 +1,76 @@ +=========== +EDI Product +=========== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:9eb0e9359e040d5f63d6af40d6aeaaa5f9f04450c7fa6cc4a65b8000ba2c1057 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-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%2Fedi--framework-lightgray.png?logo=github + :target: https://github.com/OCA/edi-framework/tree/16.0/edi_product_oca + :alt: OCA/edi-framework +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/edi-framework-16-0/edi-framework-16-0-edi_product_oca + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/edi-framework&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Provide basic configuration for products with EDI framework. + +**Table of contents** + +.. contents:: + :local: + +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 +~~~~~~~ + +* ForgeFlow + +Contributors +~~~~~~~~~~~~ + +* Oriol Miranda + +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. + +This module is part of the `OCA/edi-framework `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/edi_product_oca/__init__.py b/edi_product_oca/__init__.py new file mode 100644 index 0000000000..0650744f6b --- /dev/null +++ b/edi_product_oca/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/edi_product_oca/__manifest__.py b/edi_product_oca/__manifest__.py new file mode 100644 index 0000000000..53b8b46a58 --- /dev/null +++ b/edi_product_oca/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2023 ForgeFlow S.L. (http://www.forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "EDI Product", + "summary": """ + EDI framework configuration and base logic for products""", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "author": "ForgeFlow, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/edi-framework", + "depends": [ + "product", + "edi_oca", + ], + "data": ["views/product_views.xml"], +} diff --git a/edi_product_oca/models/__init__.py b/edi_product_oca/models/__init__.py new file mode 100644 index 0000000000..18b37e8532 --- /dev/null +++ b/edi_product_oca/models/__init__.py @@ -0,0 +1,2 @@ +from . import product_product +from . import product_template diff --git a/edi_product_oca/models/product_product.py b/edi_product_oca/models/product_product.py new file mode 100644 index 0000000000..a411f920b2 --- /dev/null +++ b/edi_product_oca/models/product_product.py @@ -0,0 +1,9 @@ +# Copyright 2023 ForgeFlow S.L. (http://www.forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models + + +class ProductProduct(models.Model): + _name = "product.product" + _inherit = ["product.product", "edi.exchange.consumer.mixin"] diff --git a/edi_product_oca/models/product_template.py b/edi_product_oca/models/product_template.py new file mode 100644 index 0000000000..ade61d91f6 --- /dev/null +++ b/edi_product_oca/models/product_template.py @@ -0,0 +1,9 @@ +# Copyright 2023 ForgeFlow S.L. (http://www.forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models + + +class ProductTemplate(models.Model): + _name = "product.template" + _inherit = ["product.template", "edi.exchange.consumer.mixin"] diff --git a/edi_product_oca/readme/CONTRIBUTORS.rst b/edi_product_oca/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..f63a57cf5c --- /dev/null +++ b/edi_product_oca/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Oriol Miranda diff --git a/edi_product_oca/readme/DESCRIPTION.rst b/edi_product_oca/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..42019c0ed0 --- /dev/null +++ b/edi_product_oca/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Provide basic configuration for products with EDI framework. diff --git a/edi_product_oca/static/description/index.html b/edi_product_oca/static/description/index.html new file mode 100644 index 0000000000..3af87ab694 --- /dev/null +++ b/edi_product_oca/static/description/index.html @@ -0,0 +1,421 @@ + + + + + + +EDI Product + + + +
+

EDI Product

+ + +

Beta License: AGPL-3 OCA/edi-framework Translate me on Weblate Try me on Runboat

+

Provide basic configuration for products with EDI framework.

+

Table of contents

+ +
+

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

+
    +
  • ForgeFlow
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

This module is part of the OCA/edi-framework project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/edi_product_oca/views/product_views.xml b/edi_product_oca/views/product_views.xml new file mode 100644 index 0000000000..5aa3f6b47e --- /dev/null +++ b/edi_product_oca/views/product_views.xml @@ -0,0 +1,35 @@ + + + + product.template.form.view - edi_product_oca + product.template + + + + + + + + + + + +
+ +
+ +
+
+
diff --git a/setup/edi_product_oca/odoo/addons/edi_product_oca b/setup/edi_product_oca/odoo/addons/edi_product_oca new file mode 120000 index 0000000000..4a3d5101cd --- /dev/null +++ b/setup/edi_product_oca/odoo/addons/edi_product_oca @@ -0,0 +1 @@ +../../../../edi_product_oca \ No newline at end of file diff --git a/setup/edi_product_oca/setup.py b/setup/edi_product_oca/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/edi_product_oca/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)