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

[18.0][MIG] event_registration_partner_unique: Migration to 18.0 #434

Open
wants to merge 26 commits into
base: 18.0
Choose a base branch
from

Conversation

HeliconiaSolutions
Copy link

@HeliconiaSolutions HeliconiaSolutions commented Feb 3, 2025

yajo and others added 26 commits February 3, 2025 15:07
This module allows you to avoid having a partner registrated twice in the same event.
It has to declare unique indexes instead of constraints to work.

[1]: OCA#38 (comment)
- Remove dependency on event_sale.
- Add custom field that allows to choose in which events to disable duplicates.
- Add tests.
- Add custom exception to be used in upcoming submodule (for event_sale).
Currently translated at 100.0% (5 of 5 strings)

Translation: event-13.0/event-13.0-event_registration_partner_unique
Translate-URL: https://translation.odoo-community.org/projects/event-13-0/event-13-0-event_registration_partner_unique/es/
Steps to reproduce the problem:

- Register anonymously a first attendee for an event from website.
- The registration is saved with no attendee_partner_id.
- Repeat the registration again anonymously.
- You get the error "Duplicated partners found in event...".

That's because current duplicated domain is searching for other
registrations regardless of if there's a linked partner or not.

We now restrict the search to those with a linked partner.

TT32961
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: event-17.0/event-17.0-event_registration_partner_unique
Translate-URL: https://translation.odoo-community.org/projects/event-17-0/event-17-0-event_registration_partner_unique/
@pedrobaeza
Copy link
Member

/ocabot migration event_registration_partner_unique

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Feb 3, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Feb 3, 2025
10 tasks
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.