-
-
Notifications
You must be signed in to change notification settings - Fork 868
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][IMP] partner_company_type: allow to set up countries and states, display shortcut in name #1604
base: 16.0
Are you sure you want to change the base?
Conversation
944bccc
to
914e55c
Compare
44a8411
to
5350466
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review LGTM
5350466
to
9c4d7ef
Compare
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review LG
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review 👍
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
@rousseldenis could we get a review here? :) |
@OriolMForgeFlow @len-foss Isn't it the same problematic ? I would say I'd prefer an EXCLUDE |
rec.partner_company_type_id.country_ids | ||
and rec.country_id not in rec.partner_company_type_id.country_ids | ||
): | ||
raise UserError( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should raise ValidationError
in a contraint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rousseldenis corrected :)
@rousseldenis Here there's a check to choose a company type to match the partner's country which is nice though. Since it seems that different use-cases want for different constraint, it would make sense to have a configuration option to choose what is allowed. Therefore entirely drop the sql constaint for the python check. |
…play shortcut in name
9c4d7ef
to
ac966c5
Compare
No description provided.