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] event_sale: failed payment on soldout events #1281

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

Conversation

chienandalu
Copy link
Member

@chienandalu chienandalu commented Jan 20, 2025

to backport if odoo#194360 gets merged

When there's a quotation for events registrations and the seats are limited, if the customer pays the quoutation the payment will fail when the quoutation gets confirmed.

With this change we prevent the customer from paying that event that is soldout.

Steps to reproduce:

  • Limit the seats for a given event.
  • Create a quotation for a ticket in that event.
  • Use the customer preview link to go to the portal view.
  • Pay the quotation (i.e. with demo payment method)
  • The confirmation crashes as there aren't seats available.

This is an issue as well as the payment is already fulfilled at bank level, but as the system crashes the callback isn't confirmed at Odoo.

cc @Tecnativa @pedrobaeza TT54556


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

@chienandalu chienandalu force-pushed the 15.0-fix-event_sale-pay-event-with-no-seats branch 2 times, most recently from d1d2a5e to 36081bd Compare January 21, 2025 10:43
When there's a quotation for events registrations and the seats are
limited, if the customer pays the quoutation the payment will fail when
the quoutation gets confirmed.

With this change we prevent the customer from paying that event that is
soldout.

Steps to reproduce:

- Limit the seats for a given event.
- Set autoconfirmation on.
- Create a quotation for a ticket in that event.
- Use the customer preview link to go to the portal view.
- Pay the quotation (i.e. with demo payment method)
- The confirmation crashes as there aren't seats available.

This is an issue as well as the payment is already fulfilled at bank
level, but as the system crashes the callback isn't confirmed at Odoo.
@chienandalu chienandalu force-pushed the 15.0-fix-event_sale-pay-event-with-no-seats branch from 36081bd to 862ac93 Compare January 21, 2025 11:01
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.

1 participant