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

[16.0][MIG] event_registration_partner_unique: Migration to version 16.0 #343

Merged

Conversation

carolinafernandez-tecnativa
Copy link

  • Standard Migration to v16
  • Test class change SetUp to SetUpClass

@Tecnativa

TT45229

@pedrobaeza @chienandalu

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

Just a tiny remark:

event_registration_partner_unique/tests/test_event.py Outdated Show resolved Hide resolved
@carolinafernandez-tecnativa carolinafernandez-tecnativa force-pushed the 16.0-mig-event_registration_partner_unique branch 5 times, most recently from 6bac255 to d2c9632 Compare September 29, 2023 13:54
@carolinafernandez-tecnativa
Copy link
Author

ping @pedrobaeza

@pedrobaeza
Copy link
Member

/ocabot migration event_registration_partner_unique

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Oct 2, 2023
@OCA-git-bot OCA-git-bot mentioned this pull request Oct 2, 2023
14 tasks
@carolinafernandez-tecnativa
Copy link
Author

ping @pedrobaeza

@pedrobaeza
Copy link
Member

You have to rebase and remove the extra temporary commit.

yajo and others added 16 commits October 17, 2023 09:15
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
@carolinafernandez-tecnativa carolinafernandez-tecnativa force-pushed the 16.0-mig-event_registration_partner_unique branch from b7de8bd to 31d9680 Compare October 17, 2023 12:19
@carolinafernandez-tecnativa
Copy link
Author

You have to rebase and remove the extra temporary commit.

Done!

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-343-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 5fd6a0c into OCA:16.0 Oct 17, 2023
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 16.0-mig-event_registration_partner_unique branch October 17, 2023 13:15
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.

None yet

10 participants