Skip to content

Conversation

@nihelgabsi-acsone
Copy link

@nihelgabsi-acsone nihelgabsi-acsone commented Oct 7, 2025

No description provided.

yajo and others added 30 commits October 6, 2025 13:44
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>
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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/
@nihelgabsi-acsone nihelgabsi-acsone changed the title 19.0 mig event registration partner unique [19.0] [MIG] event registration partner unique Oct 8, 2025
@nihelgabsi-acsone nihelgabsi-acsone changed the title [19.0] [MIG] event registration partner unique [19.0][MIG] event registration partner unique: migration to 19.0 Oct 8, 2025
@FrancoMaxime
Copy link
Member

You should add a commit named: [DON'T MERGE] test-requirements.txt to add the depends to partner_event inside the test-requirements.txt file.

odoo-addon-partner_event @ git+https://github.com/OCA/event.git@refs/pull/482/head#subdirectory=partner_event

Copy link
Member

@FrancoMaxime FrancoMaxime left a comment

Choose a reason for hiding this comment

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

Could you add the commit to add the partner_event depends on the PR

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.