diff --git a/sale_elaboration_brand/README.rst b/sale_elaboration_brand/README.rst new file mode 100644 index 00000000000..93de1da19df --- /dev/null +++ b/sale_elaboration_brand/README.rst @@ -0,0 +1,90 @@ +======================================== +Product brand in sale elaboration report +======================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:812cb5d8b771aad1fa39fdee535377f8e38e38fb2b340013799195fe3889e5e2 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fsale--workflow-lightgray.png?logo=github + :target: https://github.com/OCA/sale-workflow/tree/18.0/sale_elaboration_brand + :alt: OCA/sale-workflow +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_elaboration_brand + :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/sale-workflow&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Show the product brand in the Sale Elaboration Report + +**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 +------- + +* Tecnativa + +Contributors +------------ + +- `Tecnativa `__: + + - Sergio Teruel + - Andrii Kompaniiets + +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-Andrii9090| image:: https://github.com/Andrii9090.png?size=40px + :target: https://github.com/Andrii9090 + :alt: Andrii9090 +.. |maintainer-sergio-teruel| image:: https://github.com/sergio-teruel.png?size=40px + :target: https://github.com/sergio-teruel + :alt: sergio-teruel + +Current `maintainers `__: + +|maintainer-Andrii9090| |maintainer-sergio-teruel| + +This module is part of the `OCA/sale-workflow `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_elaboration_brand/__init__.py b/sale_elaboration_brand/__init__.py new file mode 100644 index 00000000000..3275ac2adf3 --- /dev/null +++ b/sale_elaboration_brand/__init__.py @@ -0,0 +1,2 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from . import models diff --git a/sale_elaboration_brand/__manifest__.py b/sale_elaboration_brand/__manifest__.py new file mode 100644 index 00000000000..8f0063b23c9 --- /dev/null +++ b/sale_elaboration_brand/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2026 Tecnativa - Andrii Kompaniiets +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + "name": "Product brand in sale elaboration report", + "summary": "Show product brand in sale elaboration report", + "version": "18.0.1.0.0", + "category": "Sale", + "website": "https://github.com/OCA/sale-workflow", + "author": "Tecnativa, Odoo Community Association (OCA)", + "maintainers": ["Andrii9090", "sergio-teruel"], + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": ["sale_elaboration", "product_brand"], + "data": ["views/stock_move_report_views.xml"], +} diff --git a/sale_elaboration_brand/models/__init__.py b/sale_elaboration_brand/models/__init__.py new file mode 100644 index 00000000000..6bda2d2428e --- /dev/null +++ b/sale_elaboration_brand/models/__init__.py @@ -0,0 +1 @@ +from . import stock_move diff --git a/sale_elaboration_brand/models/stock_move.py b/sale_elaboration_brand/models/stock_move.py new file mode 100644 index 00000000000..e8aa52eb92b --- /dev/null +++ b/sale_elaboration_brand/models/stock_move.py @@ -0,0 +1,11 @@ +# Copyright 2026 Tecnativa - Andrii Kompaniiets +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from odoo import fields, models + + +class StockMove(models.Model): + _inherit = "stock.move" + + product_brand_id = fields.Many2one( + "product.brand", string="Brand", related="product_id.product_brand_id" + ) diff --git a/sale_elaboration_brand/pyproject.toml b/sale_elaboration_brand/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/sale_elaboration_brand/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/sale_elaboration_brand/readme/CONTRIBUTORS.md b/sale_elaboration_brand/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..b955c63e027 --- /dev/null +++ b/sale_elaboration_brand/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- [Tecnativa](https://www.tecnativa.com): + - Sergio Teruel + - Andrii Kompaniiets diff --git a/sale_elaboration_brand/readme/DESCRIPTION.md b/sale_elaboration_brand/readme/DESCRIPTION.md new file mode 100644 index 00000000000..dbe9dcb5a46 --- /dev/null +++ b/sale_elaboration_brand/readme/DESCRIPTION.md @@ -0,0 +1 @@ +Show the product brand in the Sale Elaboration Report diff --git a/sale_elaboration_brand/static/description/icon.png b/sale_elaboration_brand/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/sale_elaboration_brand/static/description/icon.png differ diff --git a/sale_elaboration_brand/static/description/index.html b/sale_elaboration_brand/static/description/index.html new file mode 100644 index 00000000000..84c81501aff --- /dev/null +++ b/sale_elaboration_brand/static/description/index.html @@ -0,0 +1,429 @@ + + + + + +Product brand in sale elaboration report + + + +
+

Product brand in sale elaboration report

+ + +

Beta License: AGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runboat

+

Show the product brand in the Sale Elaboration Report

+

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

+
    +
  • Tecnativa
  • +
+
+
+

Contributors

+
    +
  • Tecnativa:
      +
    • Sergio Teruel
    • +
    • Andrii Kompaniiets
    • +
    +
  • +
+
+
+

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.

+

Current maintainers:

+

Andrii9090 sergio-teruel

+

This module is part of the OCA/sale-workflow project on GitHub.

+

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

+
+
+
+ + diff --git a/sale_elaboration_brand/views/stock_move_report_views.xml b/sale_elaboration_brand/views/stock_move_report_views.xml new file mode 100644 index 00000000000..90ac94cf4ed --- /dev/null +++ b/sale_elaboration_brand/views/stock_move_report_views.xml @@ -0,0 +1,17 @@ + + + + + stock.move + + + + + + + + diff --git a/setup/sale_elaboration_brand/odoo/addons/sale_elaboration_brand b/setup/sale_elaboration_brand/odoo/addons/sale_elaboration_brand new file mode 120000 index 00000000000..867c0842f85 --- /dev/null +++ b/setup/sale_elaboration_brand/odoo/addons/sale_elaboration_brand @@ -0,0 +1 @@ +../../../../sale_elaboration_brand \ No newline at end of file diff --git a/setup/sale_elaboration_brand/setup.py b/setup/sale_elaboration_brand/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/sale_elaboration_brand/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)