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

[FIX] partner_company_type: make unique constraint dependent on country #1917

Open
wants to merge 1 commit into
base: 12.0
Choose a base branch
from

Conversation

len-foss
Copy link

@len-foss len-foss commented Dec 5, 2024

No description provided.

@len-foss len-foss force-pushed the 12.0-company_type_by_country branch 3 times, most recently from e88608e to 005918e Compare December 5, 2024 20:09
@len-foss len-foss force-pushed the 12.0-company_type_by_country branch from 005918e to 4d6ea5c Compare December 5, 2024 20:18
@rousseldenis rousseldenis added this to the 12.0 milestone Dec 6, 2024
"unique (name, country_id)",
"Partner Company Type already exists for this country!"
),
(
Copy link
Contributor

@rousseldenis rousseldenis Dec 6, 2024

Choose a reason for hiding this comment

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

@len-foss And why not using the EXCLUDE with all the conditions (and removing unique constraint) ?

Copy link
Author

Choose a reason for hiding this comment

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

I generally prefer 2 simple and stupid statements to having only 1 but complicated. Unless there is a simple form to combine these?

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.

2 participants