diff --git a/pos_cash_opening_popup_no_reset/README.rst b/pos_cash_opening_popup_no_reset/README.rst new file mode 100644 index 0000000000..b5f41d9bdc --- /dev/null +++ b/pos_cash_opening_popup_no_reset/README.rst @@ -0,0 +1,86 @@ +=========================== +Cash Opening Popup No Reset +=========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:fb3bee89c3f259d918ab067202c2e4170834b3c2f8f695a9d7a6c89cf1636c71 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fpos-lightgray.png?logo=github + :target: https://github.com/OCA/pos/tree/16.0/pos_cash_opening_popup_no_reset + :alt: OCA/pos +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_cash_opening_popup_no_reset + :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=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +On the cash opening popup removes the cash total being reset to 0 when clicking on the calculator.. + +**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 +~~~~~~~ + +* Coop IT Easy SC + +Contributors +~~~~~~~~~~~~ + +* `Coop IT Easy SC `_: + + * Simon Hick + +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-mihien| image:: https://github.com/mihien.png?size=40px + :target: https://github.com/mihien + :alt: mihien + +Current `maintainer `__: + +|maintainer-mihien| + +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_cash_opening_popup_no_reset/__init__.py b/pos_cash_opening_popup_no_reset/__init__.py new file mode 100644 index 0000000000..14d3abd098 --- /dev/null +++ b/pos_cash_opening_popup_no_reset/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2025 Coop IT Easy SC +# +# SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/pos_cash_opening_popup_no_reset/__manifest__.py b/pos_cash_opening_popup_no_reset/__manifest__.py new file mode 100644 index 0000000000..78a652a4bd --- /dev/null +++ b/pos_cash_opening_popup_no_reset/__manifest__.py @@ -0,0 +1,23 @@ +# SPDX-FileCopyrightText: 2025 Coop IT Easy SC +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +{ + "name": "Cash Opening Popup No Reset", + "summary": "On the cash opening popup removes the cash total being reset " + "to 0 when clicking on the calculator", + "version": "16.0.1.0.0", + "category": "Uncategorized", + "website": "https://github.com/OCA/pos", + "author": "Coop IT Easy SC, Odoo Community Association (OCA)", + "maintainers": ["mihien"], + "license": "AGPL-3", + "depends": [ + "point_of_sale", + ], + "assets": { + "point_of_sale.assets": [ + "pos_cash_opening_popup_no_reset/static/src/js/**/*.js", + ], + }, +} diff --git a/pos_cash_opening_popup_no_reset/readme/CONTRIBUTORS.rst b/pos_cash_opening_popup_no_reset/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..ce2a524846 --- /dev/null +++ b/pos_cash_opening_popup_no_reset/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* `Coop IT Easy SC `_: + + * Simon Hick diff --git a/pos_cash_opening_popup_no_reset/readme/DESCRIPTION.rst b/pos_cash_opening_popup_no_reset/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..83c4f8a0ea --- /dev/null +++ b/pos_cash_opening_popup_no_reset/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +On the cash opening popup removes the cash total being reset to 0 when clicking on the calculator.. diff --git a/pos_cash_opening_popup_no_reset/static/description/index.html b/pos_cash_opening_popup_no_reset/static/description/index.html new file mode 100644 index 0000000000..df3bcfb528 --- /dev/null +++ b/pos_cash_opening_popup_no_reset/static/description/index.html @@ -0,0 +1,425 @@ + + + + + +Cash Opening Popup No Reset + + + +
+

Cash Opening Popup No Reset

+ + +

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

+

On the cash opening popup removes the cash total being reset to 0 when clicking on the calculator..

+

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

+
    +
  • Coop IT Easy SC
  • +
+
+
+

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.

+

Current maintainer:

+

mihien

+

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_cash_opening_popup_no_reset/static/src/js/Popups/CashOpeningPopups.esm.js b/pos_cash_opening_popup_no_reset/static/src/js/Popups/CashOpeningPopups.esm.js new file mode 100644 index 0000000000..58b6deaa32 --- /dev/null +++ b/pos_cash_opening_popup_no_reset/static/src/js/Popups/CashOpeningPopups.esm.js @@ -0,0 +1,18 @@ +/** @odoo-module **/ + +/* Copyright CoopITEasy - Simon Hick + License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) */ + +import CashOpeningPopup from "point_of_sale.CashOpeningPopup"; +import Registries from "point_of_sale.Registries"; + +const CashOpeningPopupNoReset = (CashOpeningPopupOriginal) => + class extends CashOpeningPopupOriginal { + openDetailsPopup() { + const openingCash = this.state.openingCash; + super.openDetailsPopup(); + this.state.openingCash = openingCash; + } + }; + +Registries.Component.extend(CashOpeningPopup, CashOpeningPopupNoReset); diff --git a/setup/pos_cash_opening_popup_no_reset/odoo/addons/pos_cash_opening_popup_no_reset b/setup/pos_cash_opening_popup_no_reset/odoo/addons/pos_cash_opening_popup_no_reset new file mode 120000 index 0000000000..99cc9213b3 --- /dev/null +++ b/setup/pos_cash_opening_popup_no_reset/odoo/addons/pos_cash_opening_popup_no_reset @@ -0,0 +1 @@ +../../../../pos_cash_opening_popup_no_reset \ No newline at end of file diff --git a/setup/pos_cash_opening_popup_no_reset/setup.py b/setup/pos_cash_opening_popup_no_reset/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/pos_cash_opening_popup_no_reset/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)