Skip to content

Conversation

@john-herholz-dt
Copy link

No description provided.

@john-herholz-dt john-herholz-dt mentioned this pull request Feb 10, 2024
4 tasks
@john-herholz-dt
Copy link
Author

john-herholz-dt commented Feb 10, 2024

Having some difficulties right now with the tests.

odoo.tests.common.BlockedRequest: External requests verboten (was POST http://demo.localhost.odoo/)

Any help is appreciated

EDIT

I was able to mock the _request_handler method to not get blocked. Tests are passing now.

@gurneyalex
Copy link
Member

gurneyalex commented May 14, 2024

Can you include #35 and #47 in there?

@john-herholz-dt john-herholz-dt force-pushed the 17.0-mig-webservice branch 2 times, most recently from 1dcf932 to 29196e2 Compare May 14, 2024 10:47
etobella and others added 23 commits August 18, 2024 12:39
Currently translated at 85.0% (17 of 20 strings)

Translation: edi-14.0/edi-14.0-webservice
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-webservice/fr/
The funtionality is used by the module as the method
`_server_env_fields` is defined, but the inherit of the mixin
using it is missing.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: edi-14.0/edi-14.0-webservice
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-webservice/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: edi-15.0/edi-15.0-webservice
Translate-URL: https://translation.odoo-community.org/projects/edi-15-0/edi-15-0-webservice/
'call' now accepts these explicit kw params:

* 'url': to override the request's url completely
* 'url_params': to pass interpolation params for url formatting.
john-herholz-dt and others added 8 commits August 18, 2024 13:01
The use of a compute method on `oauth2_flow` when this field is touched by
the server environment mixin causes it to be defined twice as computed,
with differents settings, and this ultimately causes a warning message
in the logs:

```
WARNING odoo odoo.modules.registry: webservice.backend: inconsistent 'compute_sudo' for computed fields: protocol, url, auth_type, username, password, api_key, api_key_header, oauth2_flow, oauth2_clientid, oauth2_client_secret, oauth2_token_url, oauth2_authorization_url, oauth2_audience, oauth2_scope, content_type
```

We fix this by using an old fashioned onchange declaration on the
`auth_type` field.
@john-herholz-dt
Copy link
Author

I tried my luck today, but I don't understand the failing checks, to be honest. My knowledge in the requests library is limited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.