Skip to content

Conversation

@Simelie
Copy link

@Simelie Simelie commented Sep 19, 2025

This PR adds the delete method to the BaseRestRequestsAdapter class in the webservice module.

Problem:
Currently, the adapter has methods for get, post, and put, but it's missing an implementation for DELETE. This causes an AttributeError when trying to make a DELETE call via backend.call('delete', ...).

Solution:
A delete method has been added, following the same pattern as the other HTTP methods (get, post, put). It acts as a simple wrapper around the generic _request method, which already handles the underlying logic for making HTTP requests of any type.

With this change, DELETE requests can now be performed successfully using the webservice module.

@OCA-git-bot
Copy link
Contributor

Hi @etobella,
some modules you are maintaining are being modified, check this out!

@Simelie Simelie closed this Sep 19, 2025
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.

2 participants