diff --git a/.copier-answers.yml b/.copier-answers.yml index 8108e81a35..b111a5c218 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -14,7 +14,8 @@ odoo_test_flavor: Both odoo_version: 16.0 org_name: Odoo Community Association (OCA) org_slug: OCA -rebel_module_groups: [] +rebel_module_groups: +- purchase_stock_analytic, stock_analytic repo_description: 'TODO: add repo description.' repo_name: account-analytic repo_slug: account-analytic diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e1af7438fa..5a662c431b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,8 +36,18 @@ jobs: matrix: include: - container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest + include: "purchase_stock_analytic, stock_analytic" + makepot: "true" + name: test with Odoo + - container: ghcr.io/oca/oca-ci/py3.10-ocb16.0:latest + include: "purchase_stock_analytic, stock_analytic" + name: test with OCB + - container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest + exclude: "purchase_stock_analytic, stock_analytic" + makepot: "true" name: test with Odoo - container: ghcr.io/oca/oca-ci/py3.10-ocb16.0:latest + exclude: "purchase_stock_analytic, stock_analytic" name: test with OCB makepot: "true" services: @@ -49,6 +59,9 @@ jobs: POSTGRES_DB: odoo ports: - 5432:5432 + env: + INCLUDE: "${{ matrix.include }}" + EXCLUDE: "${{ matrix.exclude }}" steps: - uses: actions/checkout@v3 with: diff --git a/product_analytic_purchase/README.rst b/product_analytic_purchase/README.rst new file mode 100644 index 0000000000..1bf2b3285e --- /dev/null +++ b/product_analytic_purchase/README.rst @@ -0,0 +1,87 @@ +========================= +Product Analytic Purchase +========================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:f15a44d3a6b14e3f6002644a8930f49046a5ae199f53793610daa3abc445ef06 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Faccount--analytic-lightgray.png?logo=github + :target: https://github.com/OCA/account-analytic/tree/16.0/product_analytic_purchase + :alt: OCA/account-analytic +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/account-analytic-16-0/account-analytic-16-0-product_analytic_purchase + :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/account-analytic&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module is a glue module between the *product_analytic* and +*purchase* modules. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +When you create a purchase order line with a product that has an +**expense analytic account** (or whose internal category has an +**expense analytic account**), it will be automatically set on the +purchase order line. + +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 +~~~~~~~ + +* Akretion + +Contributors +~~~~~~~~~~~~ + +* Alexis de Lattre +* Carlos Reyes +* Denis Roussel + +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/account-analytic `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_analytic_purchase/__init__.py b/product_analytic_purchase/__init__.py new file mode 100644 index 0000000000..0650744f6b --- /dev/null +++ b/product_analytic_purchase/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/product_analytic_purchase/__manifest__.py b/product_analytic_purchase/__manifest__.py new file mode 100644 index 0000000000..3136d4bb00 --- /dev/null +++ b/product_analytic_purchase/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2017 Akretion (http://www.akretion.com/) - Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + "name": "Product Analytic Purchase", + "version": "16.0.1.0.0", + "category": "Purchases", + "license": "AGPL-3", + "summary": "Glue module between purchase and product_analytic", + "author": "Akretion, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/account-analytic", + "depends": ["purchase", "product_analytic"], + "auto_install": True, + "installable": True, +} diff --git a/product_analytic_purchase/i18n/ca.po b/product_analytic_purchase/i18n/ca.po new file mode 100644 index 0000000000..20229b3dbf --- /dev/null +++ b/product_analytic_purchase/i18n/ca.po @@ -0,0 +1,22 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic_purchase +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2018-10-12 20:00+0000\n" +"Last-Translator: Harald Panten \n" +"Language-Team: none\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.1.1\n" + +#. module: product_analytic_purchase +#: model:ir.model,name:product_analytic_purchase.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Línia de comanda de compra" diff --git a/product_analytic_purchase/i18n/cs_CZ.po b/product_analytic_purchase/i18n/cs_CZ.po new file mode 100644 index 0000000000..e8455b7af5 --- /dev/null +++ b/product_analytic_purchase/i18n/cs_CZ.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic_purchase +# +# Translators: +# Lukáš Spurný , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-21 03:54+0000\n" +"PO-Revision-Date: 2018-02-21 03:54+0000\n" +"Last-Translator: Lukáš Spurný , 2018\n" +"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/" +"teams/23907/cs_CZ/)\n" +"Language: cs_CZ\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: product_analytic_purchase +#: model:ir.model,name:product_analytic_purchase.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Řádek objednávky" diff --git a/product_analytic_purchase/i18n/es.po b/product_analytic_purchase/i18n/es.po new file mode 100644 index 0000000000..4a10121395 --- /dev/null +++ b/product_analytic_purchase/i18n/es.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic_purchase +# +# Translators: +# enjolras , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-21 03:54+0000\n" +"PO-Revision-Date: 2018-02-21 03:54+0000\n" +"Last-Translator: enjolras , 2018\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_analytic_purchase +#: model:ir.model,name:product_analytic_purchase.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Línea de pedido de compra" diff --git a/product_analytic_purchase/i18n/fr.po b/product_analytic_purchase/i18n/fr.po new file mode 100644 index 0000000000..0d2734c125 --- /dev/null +++ b/product_analytic_purchase/i18n/fr.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic_purchase +# +# Translators: +# Quentin THEURET , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-23 23:11+0000\n" +"PO-Revision-Date: 2018-02-23 23:11+0000\n" +"Last-Translator: Quentin THEURET , 2018\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: product_analytic_purchase +#: model:ir.model,name:product_analytic_purchase.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Ligne de commande" diff --git a/product_analytic_purchase/i18n/hr.po b/product_analytic_purchase/i18n/hr.po new file mode 100644 index 0000000000..565ba25e05 --- /dev/null +++ b/product_analytic_purchase/i18n/hr.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic_purchase +# +# Translators: +# Bole , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-21 03:54+0000\n" +"PO-Revision-Date: 2018-02-21 03:54+0000\n" +"Last-Translator: Bole , 2018\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: product_analytic_purchase +#: model:ir.model,name:product_analytic_purchase.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Stavka naloga za nabavu" diff --git a/product_analytic_purchase/i18n/it.po b/product_analytic_purchase/i18n/it.po new file mode 100644 index 0000000000..c3a3465146 --- /dev/null +++ b/product_analytic_purchase/i18n/it.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic_purchase +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-11-14 16:09+0000\n" +"Last-Translator: Francesco Foresti \n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.14.1\n" + +#. module: product_analytic_purchase +#: model:ir.model.fields,field_description:product_analytic_purchase.field_purchase_order_line__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: product_analytic_purchase +#: model:ir.model.fields,field_description:product_analytic_purchase.field_purchase_order_line__id +msgid "ID" +msgstr "ID" + +#. module: product_analytic_purchase +#: model:ir.model.fields,field_description:product_analytic_purchase.field_purchase_order_line____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: product_analytic_purchase +#: model:ir.model,name:product_analytic_purchase.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Riga ordine di acquisto" diff --git a/product_analytic_purchase/i18n/product_analytic_purchase.pot b/product_analytic_purchase/i18n/product_analytic_purchase.pot new file mode 100644 index 0000000000..f9f7689441 --- /dev/null +++ b/product_analytic_purchase/i18n/product_analytic_purchase.pot @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_analytic_purchase +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: product_analytic_purchase +#: model:ir.model.fields,field_description:product_analytic_purchase.field_purchase_order_line__display_name +msgid "Display Name" +msgstr "" + +#. module: product_analytic_purchase +#: model:ir.model.fields,field_description:product_analytic_purchase.field_purchase_order_line__id +msgid "ID" +msgstr "" + +#. module: product_analytic_purchase +#: model:ir.model.fields,field_description:product_analytic_purchase.field_purchase_order_line____last_update +msgid "Last Modified on" +msgstr "" + +#. module: product_analytic_purchase +#: model:ir.model,name:product_analytic_purchase.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "" diff --git a/product_analytic_purchase/models/__init__.py b/product_analytic_purchase/models/__init__.py new file mode 100644 index 0000000000..fa6c0e40fd --- /dev/null +++ b/product_analytic_purchase/models/__init__.py @@ -0,0 +1 @@ +from . import purchase_order_line diff --git a/product_analytic_purchase/models/purchase_order_line.py b/product_analytic_purchase/models/purchase_order_line.py new file mode 100644 index 0000000000..92d8e50dcd --- /dev/null +++ b/product_analytic_purchase/models/purchase_order_line.py @@ -0,0 +1,40 @@ +# Copyright 2017 Akretion (http://www.akretion.com/) - Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import api, models + + +class PurchaseOrderLine(models.Model): + _inherit = "purchase.order.line" + + def _compute_analytic_distribution(self): + """ + Get analytic distribution from product expense analytic account + If no account is set, call super with those records + """ + lines_without_analytic_ids = set() + for line in self: + if line.product_id: + ana_accounts = ( + line.product_id.product_tmpl_id._get_product_analytic_accounts() + ) + ana_account = ana_accounts["expense"] + if ana_account: + line.analytic_distribution = {ana_account.id: 100} + else: + lines_without_analytic_ids.add(line.id) + return super( + PurchaseOrderLine, self.browse(lines_without_analytic_ids) + )._compute_analytic_distribution() + + @api.model_create_multi + def create(self, vals_list): + for vals in vals_list: + if vals.get("product_id") and not vals.get("analytic_distribution"): + product = self.env["product.product"].browse(vals.get("product_id")) + ana_accounts = product.product_tmpl_id._get_product_analytic_accounts() + ana_account = ana_accounts["expense"] + vals["analytic_distribution"] = ( + {ana_account.id: 100.0} if ana_account else False + ) + return super().create(vals_list) diff --git a/product_analytic_purchase/readme/CONTRIBUTORS.rst b/product_analytic_purchase/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..85cab6e133 --- /dev/null +++ b/product_analytic_purchase/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Alexis de Lattre +* Carlos Reyes +* Denis Roussel diff --git a/product_analytic_purchase/readme/DESCRIPTION.rst b/product_analytic_purchase/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..fea7c5e4d9 --- /dev/null +++ b/product_analytic_purchase/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module is a glue module between the *product_analytic* and +*purchase* modules. diff --git a/product_analytic_purchase/readme/USAGE.rst b/product_analytic_purchase/readme/USAGE.rst new file mode 100644 index 0000000000..5a2dcc7588 --- /dev/null +++ b/product_analytic_purchase/readme/USAGE.rst @@ -0,0 +1,4 @@ +When you create a purchase order line with a product that has an +**expense analytic account** (or whose internal category has an +**expense analytic account**), it will be automatically set on the +purchase order line. diff --git a/product_analytic_purchase/static/description/icon.png b/product_analytic_purchase/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/product_analytic_purchase/static/description/icon.png differ diff --git a/product_analytic_purchase/static/description/index.html b/product_analytic_purchase/static/description/index.html new file mode 100644 index 0000000000..19ce6c2272 --- /dev/null +++ b/product_analytic_purchase/static/description/index.html @@ -0,0 +1,432 @@ + + + + + + +Product Analytic Purchase + + + +
+

Product Analytic Purchase

+ + +

Beta License: AGPL-3 OCA/account-analytic Translate me on Weblate Try me on Runboat

+

This module is a glue module between the product_analytic and +purchase modules.

+

Table of contents

+ +
+

Usage

+

When you create a purchase order line with a product that has an +expense analytic account (or whose internal category has an +expense analytic account), it will be automatically set on the +purchase order line.

+
+
+

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

+
    +
  • Akretion
  • +
+
+
+

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/account-analytic project on GitHub.

+

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

+
+
+
+ + diff --git a/product_analytic_purchase/tests/__init__.py b/product_analytic_purchase/tests/__init__.py new file mode 100644 index 0000000000..5f85fc3d3a --- /dev/null +++ b/product_analytic_purchase/tests/__init__.py @@ -0,0 +1 @@ +from . import test_purchase diff --git a/product_analytic_purchase/tests/test_purchase.py b/product_analytic_purchase/tests/test_purchase.py new file mode 100644 index 0000000000..e0974720ed --- /dev/null +++ b/product_analytic_purchase/tests/test_purchase.py @@ -0,0 +1,94 @@ +# © 2015 Antiun Ingenieria - Javier Iniesta +# © 2017 Tecnativa - Luis Martínez +# © 2017 Akretion (Alexis de Lattre ) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo.tests.common import TransactionCase + + +class TestPurchaseOrderLine(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) + cls.default_plan = cls.env["account.analytic.plan"].create( + {"name": "Default Plan", "company_id": False} + ) + cls.analytic = cls.env["account.analytic.account"].create( + { + "name": "Our Super Product Development", + "plan_id": cls.default_plan.id, + } + ) + cls.product1 = cls.env["product.product"].create( + { + "name": "Computer SC234", + "categ_id": cls.env.ref("product.product_category_all").id, + "list_price": 450.0, + "standard_price": 300.0, + "type": "consu", + "uom_id": cls.env.ref("uom.product_uom_unit").id, + "uom_po_id": cls.env.ref("uom.product_uom_unit").id, + "description_sale": "17 LCD Monitor Processor AMD", + } + ) + cls.product2 = cls.env["product.product"].create( + { + "name": "Prepaid Consulting", + "categ_id": cls.env.ref("product.product_category_all").id, + "list_price": 90, + "standard_price": 40, + "type": "service", + "uom_id": cls.env.ref("uom.product_uom_hour").id, + "uom_po_id": cls.env.ref("uom.product_uom_hour").id, + "description": "Example of product to invoice on order.", + "default_code": "SERV_ORDER", + "expense_analytic_account_id": cls.analytic.id, + "income_analytic_account_id": cls.analytic.id, + } + ) + cls.po = cls.env["purchase.order"].create( + { + "partner_id": cls.env.ref("base.res_partner_1").id, + "order_line": [ + ( + 0, + 0, + { + "product_id": cls.product1.id, + "name": cls.product1.name, + "date_planned": "2017-07-17 12:42:12", + "product_qty": 12, + "product_uom": cls.product1.uom_id.id, + "price_unit": 42, + }, + ) + ], + } + ) + cls.po_line1 = cls.po.order_line[0] + + def test_change_product_id(self): + self.po_line1.product_id = self.product2.id + analytic_account_id = [key for key in self.po_line1.analytic_distribution] + self.assertEqual( + int(analytic_account_id[0]), + self.product2.expense_analytic_account_id.id, + ) + + def test_create(self): + pol_vals = { + "product_id": self.product2.id, + "name": self.product2.name, + "date_planned": "2017-07-17 12:42:12", + "product_qty": 42, + "product_uom": self.product2.uom_id.id, + "price_unit": 42, + "order_id": self.po.id, + } + po_line2 = self.env["purchase.order.line"].create(pol_vals) + analytic_account_id = [key for key in po_line2.analytic_distribution] + self.assertEqual( + int(analytic_account_id[0]), + self.product2.expense_analytic_account_id.id, + ) diff --git a/setup/product_analytic_purchase/odoo/addons/product_analytic_purchase b/setup/product_analytic_purchase/odoo/addons/product_analytic_purchase new file mode 120000 index 0000000000..a15492d959 --- /dev/null +++ b/setup/product_analytic_purchase/odoo/addons/product_analytic_purchase @@ -0,0 +1 @@ +../../../../product_analytic_purchase \ No newline at end of file diff --git a/setup/product_analytic_purchase/setup.py b/setup/product_analytic_purchase/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/product_analytic_purchase/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)