[18.0][FIX] base_user_role_company: Roles are filtered so none which exceed date_to are used#347
Conversation
StefanRijnhart
left a comment
There was a problem hiding this comment.
Maybe use this convenience method: https://github.com/OCA/server-backend/blob/14.0/base_user_role/models/user.py#L54-L55
Can you add a small test?
|
@StefanRijnhart _get_enabled_roles is the method I am overwriting, so instead of calling it (recursion error) again I will use res, this has the same functionality. I also added test scenarios. |
StefanRijnhart
left a comment
There was a problem hiding this comment.
Great thanks! Only some minor comments now.
StefanRijnhart
left a comment
There was a problem hiding this comment.
Thanks for the update! Please squash the commits.
3adfa8b to
e73df67
Compare
|
Comments resolved & commits squashed! Thank you for review! |
StefanRijnhart
left a comment
There was a problem hiding this comment.
Apologies, one thing I missed: the module name needs to be featured in the commit message, so [FIX] base_user_role_company: ... (like the PR title actually).
e73df67 to
8d7fc9a
Compare
… date_to are used
8d7fc9a to
75348ff
Compare
|
Should be resolved now:) thank you! |
StefanRijnhart
left a comment
There was a problem hiding this comment.
Thanks for the quick responses!
|
This PR has the |
|
/ocabot merge patch |
|
What a great day to merge this nice PR. Let's do it! |
|
Congratulations, your PR was merged at 4940e8c. Thanks a lot for contributing to OCA. ❤️ |
Fixed a bug where disabled roles (because past date_to) were used.