Repository navigation
Conversation
Contributor
…ayment Bridge between website_sale and sale_exception (auto_install). - exception.rule: new "Check on eCommerce" flag and an eCommerce message (translatable HTML) shown to the customer. - Orders with a website only evaluate the flagged rules, at any moment (checkout, confirmation after payment, manual confirmation, later edits). Orders without website keep evaluating every rule. - /shop/payment: flagged rules are evaluated through _get_shop_payment_errors, so the payment form and button are hidden and an error banner is shown, with a "Back to cart" button. - _check_cart_is_ready_to_be_paid raises the same error, which covers /shop/payment/transaction and express checkout. - Exceptions are evaluated with _get_exceptions (no raise, nothing stored on the order), so it works before and after the OCA base_exception refactor. Change note: Las excepciones de venta marcadas para el e-commerce se validan en el último paso del checkout, antes de pagar. Si alguna aplica, el cliente no puede pagar, ve el mensaje configurado en la regla (o uno genérico) y puede volver al carrito. En las órdenes del e-commerce las reglas sin marcar ya no se evalúan, así una orden pagada no queda en presupuesto por una regla pensada para el backend.
JrAdhoc
force-pushed
the
19.0-t-75453-jr
branch
from
October 9, 2026 18:43
9f77344 to
beacec7
Compare
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Tarea: https://www.adhoc.inc/odoo/project.task/75453
New bridge module between
website_saleandsale_exception(auto_install).Problem.
sale_exceptionchecks the rules when the order is confirmed. On the eCommerce that happens after the payment: the transaction is paid and the order stays as a quotation. With the OCAbase_exceptionrefactor (OCA/server-tools#3729, still open on 19.0) the error is also raised to the customer.Change.
exception.rule: new "Check on eCommerce" flag and an eCommerce message (translatable HTML) shown only to the customer. If empty, a generic message is shown./shop/payment: the flagged rules are added to_get_shop_payment_errors, so the native template hides the payment form and button and shows the error banner. A "Back to cart" button is added._check_cart_is_ready_to_be_paidraises the same error: covers/shop/payment/transactionand express checkout._get_exceptions(no raise, nothing stored on the order), so it works before and after the OCA refactor.Notes.
website_sale_exceptionmodule of ingadhoc/sale.