-
Notifications
You must be signed in to change notification settings - Fork 24.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] point_of_sale: handle failed push of invoiceable order
The use case is a bit complicated so brace yourself: OFFLINE - Make an order, invoiceble with a partner - Pay it, validate it - An error popup is shown => Before this commit, the payment screen was still on => After this commit, the receipt screen is shown proposing to print the invoice ONLINE - Make another order, non invoiceable. - Pay it, validate it - Both orders are now pushed to the server => Before this commit, it was still possible to click on "Back" and add some products. The result of this will be that the order in DB (server) would not have the newly added product, whereas the ticket would state that there was a new product => After this commit, we basically block the edition of a paid and validated order, even if the invoice printing failed OPW 1971028 closes #32885 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
- Loading branch information
1 parent
a2d71ce
commit c8fdf32
Showing
3 changed files
with
93 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters