From 3a7a766945fd57c29b8c18d99bd5718dbd474ec5 Mon Sep 17 00:00:00 2001 From: Borruso Date: Thu, 22 Jun 2023 10:13:07 +0200 Subject: [PATCH] [MIG] sale_operating_unit: Migration to 16.0 --- sale_operating_unit/README.rst | 14 +++++++------- sale_operating_unit/__manifest__.py | 2 +- sale_operating_unit/report/sale_report.py | 11 ++++++----- .../static/description/index.html | 8 ++++---- .../tests/test_sale_operating_unit.py | 17 ++++++++--------- 5 files changed, 26 insertions(+), 26 deletions(-) diff --git a/sale_operating_unit/README.rst b/sale_operating_unit/README.rst index b7242ea46b..b49606a504 100644 --- a/sale_operating_unit/README.rst +++ b/sale_operating_unit/README.rst @@ -14,14 +14,14 @@ Operating Unit in Sales :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Foperating--unit-lightgray.png?logo=github - :target: https://github.com/OCA/operating-unit/tree/15.0/sale_operating_unit + :target: https://github.com/OCA/operating-unit/tree/16.0/sale_operating_unit :alt: OCA/operating-unit .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/operating-unit-15-0/operating-unit-15-0-sale_operating_unit + :target: https://translation.odoo-community.org/projects/operating-unit-16-0/operating-unit-16-0-sale_operating_unit :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/213/15.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/operating-unit&target_branch=16.0 + :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -57,7 +57,7 @@ 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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -96,6 +96,6 @@ 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/operating-unit `_ project on GitHub. +This module is part of the `OCA/operating-unit `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_operating_unit/__manifest__.py b/sale_operating_unit/__manifest__.py index 4ff7d8c338..ee4b2e14f3 100644 --- a/sale_operating_unit/__manifest__.py +++ b/sale_operating_unit/__manifest__.py @@ -4,7 +4,7 @@ # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). { "name": "Operating Unit in Sales", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "summary": "An operating unit (OU) is an organizational entity part of a " "company", "author": "ForgeFlow, " diff --git a/sale_operating_unit/report/sale_report.py b/sale_operating_unit/report/sale_report.py index ef86c2bad1..49f8fda803 100644 --- a/sale_operating_unit/report/sale_report.py +++ b/sale_operating_unit/report/sale_report.py @@ -8,11 +8,12 @@ class SaleReport(models.Model): operating_unit_id = fields.Many2one("operating.unit", "Operating Unit") - def _group_by_sale(self, groupby=""): - res = super()._group_by_sale(groupby) + def _group_by_sale(self): + res = super()._group_by_sale() res += """, s.operating_unit_id""" return res - def _select_additional_fields(self, fields): - fields["operating_unit_id"] = ", s.operating_unit_id as operating_unit_id" - return super()._select_additional_fields(fields) + def _select_additional_fields(self): + res = super()._select_additional_fields() + res["operating_unit_id"] = "s.operating_unit_id" + return res diff --git a/sale_operating_unit/static/description/index.html b/sale_operating_unit/static/description/index.html index 20b57c163f..03f373b42a 100644 --- a/sale_operating_unit/static/description/index.html +++ b/sale_operating_unit/static/description/index.html @@ -3,7 +3,7 @@ - + Operating Unit in Sales