From c7e1b22b6c003c094cae3d19e04ad68e650e4f27 Mon Sep 17 00:00:00 2001
From: Sylvain Van Hoof
Date: Wed, 20 Nov 2024 16:49:14 +0100
Subject: [PATCH] [MIG] pos_payment_change: Migration to 17.0
---
pos_payment_change/__manifest__.py | 2 +-
.../static/description/index.html | 65 +++++++++----------
pos_payment_change/views/view_pos_config.xml | 25 +++----
pos_payment_change/views/view_pos_order.xml | 4 +-
.../wizards/pos_payment_change_wizard.py | 14 +++-
.../pos_payment_change_wizard_new_line.py | 43 ++++++------
.../view_pos_payment_change_wizard.xml | 8 ++-
7 files changed, 84 insertions(+), 77 deletions(-)
diff --git a/pos_payment_change/__manifest__.py b/pos_payment_change/__manifest__.py
index 3fe47e6da4..8a448a4004 100644
--- a/pos_payment_change/__manifest__.py
+++ b/pos_payment_change/__manifest__.py
@@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Point Of Sale - Change Payments",
- "version": "16.0.1.0.4",
+ "version": "17.0.1.0.0",
"summary": "Allow cashier to change order payments, as long as"
" the session is not closed.",
"category": "Point Of Sale",
diff --git a/pos_payment_change/static/description/index.html b/pos_payment_change/static/description/index.html
index 86a38d40c1..8d489d639a 100644
--- a/pos_payment_change/static/description/index.html
+++ b/pos_payment_change/static/description/index.html
@@ -8,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
-:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
+:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
+Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
@@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }
-pre.code .ln { color: grey; } /* line numbers */
+pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -368,12 +369,12 @@ Point Of Sale - Change Payments
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f92dd72ac053a86a8837e2a670cfa091391cadb66e6e3b45553b3b34f8d76400
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module extends the functionnality of the Odoo Point of Sale to
allow the cashier to change the payments of a PoS order.
This feature is usefull when the user realized that he did a mistake,
-just after he marked the order as paid, or during the close of the session,
-Only if entries has not been generated.
+just after he marked the order as paid, or during the close of the
+session, Only if entries has not been generated.
@@ -394,22 +395,18 @@
- Go to Point of Sale.
- Choose the view list.
-- Edit your point of sale, and select a value for the field
-‘Payment Change Policy’.
+- Edit your point of sale, and select a value for the field ‘Payment
+Change Policy’.
Two options are available:
-- ‘Refund and Resale’: Odoo will refund the current
-Pos Order to cancel it, and create a new PoS Order
-with the correct payment lines
+- ‘Refund and Resale’: Odoo will refund the current Pos Order to cancel
+it, and create a new PoS Order with the correct payment lines
- ‘Update Payments’: Odoo will change payment lines.
-
-Note
-In some countries the ‘Update Payments’ Option
-is not allowed by law, because orders history shouldn’t not be altered.
+
+Note In some countries the ‘Update Payments’ Option is not allowed
+by law, because orders history shouldn’t not be altered.
For that purpose, a constrains is present to check the value of this
field. If the module l10n_fr_certification is installed and if the
current company has an inalterable accounting, it will not be possible
@@ -421,32 +418,27 @@
- Go to a PoS Order
- Click on the button ‘Change Payments’
-
+
-- In the pop up wizard, select the real payment(s) that have been
-used to pay the order
+- In the pop up wizard, select the real payment(s) that have been used
+to pay the order
-
+
- Then click on the button ‘Change Payments’
Note
-
If the option ‘Refund and Resale’ is selected, changing the payments will
-display the three PoS orders. the oringal one, the refund one, and the new one.
-
+
If the option ‘Refund and Resale’ is selected, changing the payments
+will display the three PoS orders. the oringal one, the refund one, and
+the new one.
+
This module is maintained by the OCA.
-
+
+
+
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:
-
This module is part of the OCA/pos project on GitHub.
+
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_payment_change/views/view_pos_config.xml b/pos_payment_change/views/view_pos_config.xml
index 6ec422b38b..196c697683 100644
--- a/pos_payment_change/views/view_pos_config.xml
+++ b/pos_payment_change/views/view_pos_config.xml
@@ -10,22 +10,15 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).