diff --git a/checklog-odoo.cfg b/checklog-odoo.cfg index 0b55b7bf66..b997d20950 100644 --- a/checklog-odoo.cfg +++ b/checklog-odoo.cfg @@ -1,3 +1,4 @@ [checklog-odoo] ignore= WARNING.* 0 failed, 0 error\(s\).* + WARNING.* Killing chrome descendants-or-self.* diff --git a/pos_divide_order_summary/README.rst b/pos_divide_order_summary/README.rst new file mode 100644 index 0000000000..c0399dfb0d --- /dev/null +++ b/pos_divide_order_summary/README.rst @@ -0,0 +1,105 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +========================= +POS Divider Order Summary +========================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:dfa604ef00e5f8c21ab59fe20abaf73d2c7b83c6616e6dded1ed2ad94f92c209 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/license-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%2Fpos-lightgray.png?logo=github + :target: https://github.com/OCA/pos/tree/19.0/pos_divide_order_summary + :alt: OCA/pos +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/pos-19-0/pos-19-0-pos_divide_order_summary + :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/pos&target_branch=19.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Divides the order summary into two parts allowing adding content to the +left-hand side of the order summary. Other modules depend on this to be +shown correctly. For example: + +- pos_display_order_number +- pos_display_total_quantity + +**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 +------- + +* Camptocamp + +Contributors +------------ + +- `Camptocamp `__: + + - Henry Backman henry.backman@camptocamp.com + +- `Trobz `__: + + - Tris Doan tridm@trobz.com + +Other credits +------------- + +The development and migration of this module from 17.0 to 18.0 was +financially supported by Camptocamp. + +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-henrybackman| image:: https://github.com/henrybackman.png?size=40px + :target: https://github.com/henrybackman + :alt: henrybackman + +Current `maintainer `__: + +|maintainer-henrybackman| + +This module is part of the `OCA/pos `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/pos_divide_order_summary/__init__.py b/pos_divide_order_summary/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/pos_divide_order_summary/__manifest__.py b/pos_divide_order_summary/__manifest__.py new file mode 100644 index 0000000000..0581c825c1 --- /dev/null +++ b/pos_divide_order_summary/__manifest__.py @@ -0,0 +1,28 @@ +# Copyright 2024 Camptocamp SA (https://www.camptocamp.com). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "POS Divider Order Summary", + "summary": "POS - Divider order summary", + "version": "19.0.1.0.0", + "development_status": "Beta", + "category": "Point Of Sale", + "website": "https://github.com/OCA/pos", + "author": "Camptocamp, Odoo Community Association (OCA)", + "maintainers": ["henrybackman"], + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "point_of_sale", + ], + "assets": { + "point_of_sale._assets_pos": [ + "pos_divide_order_summary/static/src/xml/pos_divide_order_summary.xml", + ], + "web.assets_tests": [ + "pos_divide_order_summary/static/tests/tours/**/*", + ], + }, + "sequence": 10, +} diff --git a/pos_divide_order_summary/i18n/it.po b/pos_divide_order_summary/i18n/it.po new file mode 100644 index 0000000000..ce292a9b7a --- /dev/null +++ b/pos_divide_order_summary/i18n/it.po @@ -0,0 +1,15 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * pos_divide_order_summary +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\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" diff --git a/pos_divide_order_summary/i18n/pos_divide_order_summary.pot b/pos_divide_order_summary/i18n/pos_divide_order_summary.pot new file mode 100644 index 0000000000..aadee09bfe --- /dev/null +++ b/pos_divide_order_summary/i18n/pos_divide_order_summary.pot @@ -0,0 +1,13 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.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" diff --git a/pos_divide_order_summary/pyproject.toml b/pos_divide_order_summary/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/pos_divide_order_summary/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/pos_divide_order_summary/readme/CONTRIBUTORS.md b/pos_divide_order_summary/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..9da1c769d7 --- /dev/null +++ b/pos_divide_order_summary/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- [Camptocamp](https://www.camptocamp.com): + - Henry Backman +- [Trobz](https://www.trobz.com): + - Tris Doan diff --git a/pos_divide_order_summary/readme/CREDITS.md b/pos_divide_order_summary/readme/CREDITS.md new file mode 100644 index 0000000000..d9386b8352 --- /dev/null +++ b/pos_divide_order_summary/readme/CREDITS.md @@ -0,0 +1 @@ +The development and migration of this module from 17.0 to 18.0 was financially supported by Camptocamp. diff --git a/pos_divide_order_summary/readme/DESCRIPTION.md b/pos_divide_order_summary/readme/DESCRIPTION.md new file mode 100644 index 0000000000..97a8b6cafb --- /dev/null +++ b/pos_divide_order_summary/readme/DESCRIPTION.md @@ -0,0 +1,5 @@ +Divides the order summary into two parts allowing adding content to the +left-hand side of the order summary. +Other modules depend on this to be shown correctly. For example: +- pos_display_order_number +- pos_display_total_quantity diff --git a/pos_divide_order_summary/static/description/icon.png b/pos_divide_order_summary/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/pos_divide_order_summary/static/description/icon.png differ diff --git a/pos_divide_order_summary/static/description/index.html b/pos_divide_order_summary/static/description/index.html new file mode 100644 index 0000000000..70704ebd2c --- /dev/null +++ b/pos_divide_order_summary/static/description/index.html @@ -0,0 +1,450 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

POS Divider Order Summary

+ +

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

+

Divides the order summary into two parts allowing adding content to the +left-hand side of the order summary. Other modules depend on this to be +shown correctly. For example:

+
    +
  • pos_display_order_number
  • +
  • pos_display_total_quantity
  • +
+

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

+
    +
  • Camptocamp
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The development and migration of this module from 17.0 to 18.0 was +financially supported by Camptocamp.

+
+
+

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 maintainer:

+

henrybackman

+

This module is part of the OCA/pos project on GitHub.

+

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

+
+
+
+
+ + diff --git a/pos_divide_order_summary/static/src/xml/pos_divide_order_summary.xml b/pos_divide_order_summary/static/src/xml/pos_divide_order_summary.xml new file mode 100644 index 0000000000..a149c8ac07 --- /dev/null +++ b/pos_divide_order_summary/static/src/xml/pos_divide_order_summary.xml @@ -0,0 +1,17 @@ + + + + + +
+ + + + diff --git a/pos_divide_order_summary/static/tests/tours/DivideOrderSummary.tour.esm.js b/pos_divide_order_summary/static/tests/tours/DivideOrderSummary.tour.esm.js new file mode 100644 index 0000000000..ad2f4eb6d5 --- /dev/null +++ b/pos_divide_order_summary/static/tests/tours/DivideOrderSummary.tour.esm.js @@ -0,0 +1,19 @@ +import * as Chrome from "@point_of_sale/../tests/pos/tours/utils/chrome_util"; +import * as Dialog from "@point_of_sale/../tests/generic_helpers/dialog_util"; +import * as ProductScreen from "@point_of_sale/../tests/pos/tours/utils/product_screen_util"; +import {inLeftSide} from "@point_of_sale/../tests/pos/tours/utils/common"; +import {registry} from "@web/core/registry"; + +registry.category("web_tour.tours").add("DivideOrderSummary", { + steps: () => + [ + Chrome.startPoS(), + Dialog.confirm("Open Register"), + ProductScreen.clickDisplayedProduct("Desk Organizer"), + inLeftSide({ + content: "Check Summary is divided", + trigger: ".product-screen:has(div#extra-info-container)", + }), + Chrome.endTour(), + ].flat(), +}); diff --git a/pos_divide_order_summary/tests/__init__.py b/pos_divide_order_summary/tests/__init__.py new file mode 100644 index 0000000000..ab211c0007 --- /dev/null +++ b/pos_divide_order_summary/tests/__init__.py @@ -0,0 +1 @@ +from . import test_frontend diff --git a/pos_divide_order_summary/tests/test_frontend.py b/pos_divide_order_summary/tests/test_frontend.py new file mode 100644 index 0000000000..18c41ab6a0 --- /dev/null +++ b/pos_divide_order_summary/tests/test_frontend.py @@ -0,0 +1,19 @@ +# Copyright 2025 Camptocamp (https://www.camptocamp.com). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +import odoo.tests + +from odoo.addons.point_of_sale.tests.test_frontend import TestPointOfSaleHttpCommon + + +@odoo.tests.tagged("post_install", "-at_install") +class TestDivideOrderSummary(TestPointOfSaleHttpCommon): + # TODO: Delete if merged https://github.com/odoo/odoo/pull/240587 + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.pos_user.group_ids += cls.env.ref("base.group_system") + + def test_divide_order_summary(self): + self.main_pos_config.with_user(self.pos_user).open_ui() + self.start_pos_tour("DivideOrderSummary", login="pos_user")