Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] point_of_sale: Remove rescue session creation #610

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

allanpa88
Copy link

This commit addresses the issue where orders were created on a device with an open PoS session, even though the session had been closed on another device. Previously, the system would create a "rescue session" for these orders, which led to incorrect cash statements.

With this fix, instead of creating a rescue session, the system now attempts to find any available open session. If no open session is found, the system prevents the order sync and raises an error, prompting users to open a new session.

The decision to remove rescue sessions was driven by the fact that they caused inaccuracies in cash statements. Orders captured in a rescue session, especially those involving cash payments, would disrupt the cash control process. Furthermore, rescue sessions would initialize with a zero opening balance, which affected the accuracy of closing balances and cash flow.

opw-4219284

closes odoo#187717

X-original-commit: 8be4b82

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

This is a backport from odoo/odoo v18.0
odoo@1f1e642

As description say this fix
With this fix, instead of creating a rescue session the system now attempts to find any available open session:
image

If no open session is found, the system prevents the order sync and raises an error, prompting users to open a new session.

image

image

This commit addresses the issue where orders were created on a device
with an open PoS session, even though the session had been closed on
another device. Previously, the system would create a "rescue session"
for these orders, which led to incorrect cash statements.

With this fix, instead of creating a rescue session, the system now
attempts to find any available open session. If no open session is
found, the system prevents the order sync and raises an error,
prompting users to open a new session.

The decision to remove rescue sessions was driven by the fact that
they caused inaccuracies in cash statements. Orders captured in a
rescue session, especially those involving cash payments, would
disrupt the cash control process. Furthermore, rescue sessions would
initialize with a zero opening balance, which affected the accuracy of
closing balances and cash flow.

opw-4219284

closes odoo#187717

X-original-commit: 8be4b82
Signed-off-by: Joseph Caburnay (jcb) <[email protected]>
Signed-off-by: Pedram Bi Ria (pebr) <[email protected]>
@hugho-ad
Copy link
Collaborator

hugho-ad commented Jan 9, 2025

open a new PR at odoo, IMHOP should be a valid backport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants