Skip to content

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

Merged
OCA-git-bot merged 29 commits into
OCA:19.0from
Tecnativa:19.0-mig-event_registration_partner_unique
Jul 8, 2026
Merged

[19.0][MIG] event_registration_partner_unique: Migration to version 19.0#524
OCA-git-bot merged 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

Comment thread event_registration_partner_unique/models/event.py Outdated
@pilarvargas-tecnativa pilarvargas-tecnativa force-pushed the 19.0-mig-event_registration_partner_unique branch from 7506f9a to 0acda43 Compare July 8, 2026 05:32

@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.

LGTM

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration event_registration_partner_unique
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Jul 8, 2026
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 19.0-ocabot-merge-pr-524-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot mentioned this pull request Jul 8, 2026
16 tasks
@OCA-git-bot OCA-git-bot merged commit 2622e14 into OCA:19.0 Jul 8, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at c6ca33c. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 19.0-mig-event_registration_partner_unique branch July 8, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.