Repository navigation
Conversation
On get, post and put operations by default a UserError is raised for status code > 201. With this commit the caller of those methods can opt to receive the original response.
|
@NL66278 I think this is the best because this is the branch with the abstract model, which is also the plan to introduce in Odoo 18 as I understand it all correctly. |
|
The tests tries to go to an OCA github page. However in current Odoo testing external http requests are blocked. Therefore the request.get method should be mocked, so it does not go outside. |
`_get_self_writable_groups()` is subtracted from the user's own groups so the synchronisation never takes those groups away, but it is not subtracted from the groups contributed by the roles. A role implying one of them hands it back on every `res.users.write()`, silently overriding the user's choice. This is visible with `mail.group_mail_notification_type_inbox`, since `notification_type` is stored and computed from that group: a user whose role implies it cannot switch to "Handle by Emails" at all. Picking it removes the group, `set_groups_from_roles` adds it back within the same write, and the compute returns the user to `inbox`. Removing the group by hand only lasts until that user's next write, or until "Update users" is pressed on the role. Subtract the self-writable groups from the roles' groups as well, so a role neither grants nor removes them and the choice stays with the user.
…r backend ui users since they can write messages
Currently translated at 100.0% (62 of 62 strings) Translation: server-backend-18.0/server-backend-18.0-base_ical Translate-URL: https://translation.odoo-community.org/projects/server-backend-18-0/server-backend-18-0-base_ical/it/
…ana using Alchemy TT38753 [UPD] Update base_external_dbsource_sap_hana.pot [UPD] README.rst
Translated using Weblate (Spanish) Currently translated at 100.0% (1 of 1 strings) Translation: server-backend-15.0/server-backend-15.0-base_external_dbsource_sap_hana Translate-URL: https://translation.odoo-community.org/projects/server-backend-15-0/server-backend-15-0-base_external_dbsource_sap_hana/es/
Translated using Weblate (Galician) Currently translated at 100.0% (1 of 1 strings) Translation: server-backend-15.0/server-backend-15.0-base_external_dbsource_sap_hana Translate-URL: https://translation.odoo-community.org/projects/server-backend-15-0/server-backend-15-0-base_external_dbsource_sap_hana/gl/
Currently translated at 100.0% (4 of 4 strings) Translation: server-backend-18.0/server-backend-18.0-base_external_dbsource_sap_hana Translate-URL: https://translation.odoo-community.org/projects/server-backend-18-0/server-backend-18-0-base_external_dbsource_sap_hana/it/
…elds, in user tree view. Rational: If user has a lot of roles, the display will be ugly. So we use optional='hide', to have the possibility to show the roles, if required (cherry picked from commit 57741ea)
|
There is still the problem with testing with the help of external hosts. Apparently this is no longer allowed ("Verboten"). The solution would be to mock the requests library. @lfreeke would you like me to look into this, or might Nikos have time to do this? |
No description provided.