[19.0][MIG] event_registration_partner_unique: Migration to version 19.0#524
Open
pilarvargas-tecnativa wants to merge 29 commits into
Open
[19.0][MIG] event_registration_partner_unique: Migration to version 19.0#524pilarvargas-tecnativa wants to merge 29 commits into
pilarvargas-tecnativa wants to merge 29 commits into
Conversation
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).
- Updated views - Updated README
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/
b35c8b0 to
7506f9a
Compare
juancarlosonate-tecnativa
suggested changes
Jul 7, 2026
| if dupes: | ||
| raise ValidationError( | ||
| self.env._( | ||
| "Duplicated partners found in event {event}: {partners}.", |
There was a problem hiding this comment.
Suggested change
| "Duplicated partners found in event {event}: {partners}.", | |
| "Duplicated partners found in event %(event)s: %(partners)s.", |
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.

@Tecnativa TT63403
@eduezerouali-tecnativa @juancarlosonate-tecnativa please review