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

[17.0][IMP] mis_builder: enforce unique style name #656

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

Conversation

chaule97
Copy link

No description provided.

@OCA-git-bot
Copy link
Contributor

Hi @sbidoul,
some modules you are maintaining are being modified, check this out!

@sbidoul sbidoul added the 17.0 label Dec 10, 2024
@@ -133,6 +132,10 @@ def check_positive_val(self):
hide_always_inherit = fields.Boolean(default=True)
hide_always = fields.Boolean(default=False)

_sql_constraints = [
("style_name_event_uniq", "unique(name)", "Style name should be unique")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
("style_name_event_uniq", "unique(name)", "Style name should be unique")
("style_name_uniq", "unique(name)", "Style name should be unique")

A little detail.

@chaule97 chaule97 force-pushed the 17.0-upd-enforce-unique-style-name branch from 019288f to f12a94f Compare December 12, 2024 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants