Closed kenneth-vkd closed 5 months ago
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
We have the same issue. Seems to be a limit of standard Odoo. @lmignon do you maybe know if there's a easy way to make it working?
We have the same issue. Seems to be a limit of standard Odoo. @lmignon do you maybe know if there's a easy way to make it working?
add the "PATCH" method here
A PR with the fix would be appreciated
Yes, it works! Thank you @lmignon ! I will open a PR later on today.
PR for V16: https://github.com/OCA/rest-framework/pull/431
PR for V17: https://github.com/OCA/rest-framework/pull/432
Module
fastapi
Describe the bug
When creating endpoints in a router using
@router.patch()
, it shows in the auto-generated documentation, but when attempting to use it, the following HTML is returned:Seems to be returned from Odoo directly and it therefore never reaches
fastapi
Affected versions: 16.0
Expected behavior It would be expected that
PATCH
requests are supported or that thefastapi
module raises a warning/error routes/endpoints using this method have been detectedAdditional context installed libraries in environment: