[18.0][IMP] base_tier_validation: support res.groups in addition to res.users in field-based validation#1081
Conversation
|
Hi @LoisRForgeFlow, |
7e58ca6 to
6425290
Compare
6425290 to
b0a4f98
Compare
| def _check_reviewers(self, resource): | ||
| if not resource or resource._name not in ["res.users", "res.groups"]: | ||
| raise ValidationError( | ||
| self.env._("There are no res.users in the selected field") |
There was a problem hiding this comment.
This is too technical message.
| self.env._("There are no res.users in the selected field") | |
| self.env._("There are no user or group in the selected field") |
0e382fc to
f9db455
Compare
9f96b57 to
cc064b5
Compare
StefanRijnhart
left a comment
There was a problem hiding this comment.
Thanks for the changes so far! One remaining comment.
c754087 to
643f081
Compare
|
@LoisRForgeFlow @rousseldenis OK for you now? |
|
@kevinkhao There is a conflict that will prevent merge, could you attend that? |
LoisRForgeFlow
left a comment
There was a problem hiding this comment.
Apart from the conflicts mentioned, I have done a functional test locally and it works as expected 👍
643f081 to
14d5383
Compare
|
@LoisRForgeFlow done! |
14d5383 to
78690b2
Compare
…rs in field-based validation
78690b2 to
03abaec
Compare
|
I made some changes to make codecov happy. Now it seems the testing pipeline fails at initialization time. |
|
Test failure was caused by the Github glitch last week and are green on rerun. |
|
/ocabot merge minor |
|
This PR looks fantastic, let's merge it! |
|
Congratulations, your PR was merged at 0eaff63. Thanks a lot for contributing to OCA. ❤️ |
No description provided.