-
-
Notifications
You must be signed in to change notification settings - Fork 498
[18.0][MIG] cross_connect_client : Migration to 18.0 #782
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
base: 18.0
Are you sure you want to change the base?
Conversation
271717c to
a034a09
Compare
We want to avoid deletion of the group because we would then loose all users configured on it. So we prefer to remove the link between the cross connect server and the group instead
d122445 to
4328e2d
Compare
florian-dacosta
left a comment
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.
LGTM (code review)
| self.ensure_one() | ||
| groups = self.env.user.groups_id & self.group_ids | ||
| if not groups: | ||
| raise UserError(_("You are not allowed to access this server")) |
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.
OCA 18.0 guideline: https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-18.0
please use self.env._() instead of _() for translations.
| raise UserError(_("You are not allowed to access this server")) | ||
|
|
||
| if not self.env.user.email: | ||
| raise UserError(_("User email is required")) |
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.
OCA 18.0 guideline: https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-18.0
please use self.env._() instead of _() for translations.
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.
Done, thanks
|
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. |
4328e2d to
dcada6f
Compare
|
@sebastienbeau @paradoxxxzero A review please ? |
|
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. |
paradoxxxzero
left a comment
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.
LGTM
…-param [IMP] cross_connect_client: Work with params and not server redirect_url
No description provided.