Skip to content

[19.0][MIG] event_registration_partner_unique: Migration to version 19.0#524

Open
pilarvargas-tecnativa wants to merge 29 commits into
OCA:19.0from
Tecnativa:19.0-mig-event_registration_partner_unique
Open

[19.0][MIG] event_registration_partner_unique: Migration to version 19.0#524
pilarvargas-tecnativa wants to merge 29 commits into
OCA:19.0from
Tecnativa:19.0-mig-event_registration_partner_unique

Conversation

@pilarvargas-tecnativa

Copy link
Copy Markdown
Contributor

yajo and others added 28 commits July 7, 2026 15:28
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
[UPD] Update event_registration_partner_unique.pot

[BOT] post-merge updates

Update translation files

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/
TT57506

Co-authored-by: Bhavesh Heliconia <oca@heliconia.in>
Currently translated at 100.0% (5 of 5 strings)

Translation: event-18.0/event-18.0-event_registration_partner_unique
Translate-URL: https://translation.odoo-community.org/projects/event-18-0/event-18-0-event_registration_partner_unique/de/
Currently translated at 100.0% (5 of 5 strings)

Translation: event-18.0/event-18.0-event_registration_partner_unique
Translate-URL: https://translation.odoo-community.org/projects/event-18-0/event-18-0-event_registration_partner_unique/sl/
@OCA-git-bot OCA-git-bot added series:19.0 mod:event_registration_partner_unique Module event_registration_partner_unique labels Jul 7, 2026
@pilarvargas-tecnativa pilarvargas-tecnativa force-pushed the 19.0-mig-event_registration_partner_unique branch from b35c8b0 to 7506f9a Compare July 7, 2026 14:13

@juancarlosonate-tecnativa juancarlosonate-tecnativa left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

if dupes:
raise ValidationError(
self.env._(
"Duplicated partners found in event {event}: {partners}.",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Duplicated partners found in event {event}: {partners}.",
"Duplicated partners found in event %(event)s: %(partners)s.",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:event_registration_partner_unique Module event_registration_partner_unique series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.