$ 29.00
Disable RPC
Provide helpers to authorize RPC calls.
Table of contents
Configuration
Enable debug mode and go to “Technical -> Database Structure -> Models”.
Open the model that you like to configure and go to the tab “RPC config”.
There you see a text field which supports JSON configuration.
The configuration is the same you can pass via decorator. The only difference is that you have to wrap values in a dictionary like {“disable”: […values…]}.
To disable all calls:
{
"disable": ["all"],
}
To disable only some methods:
{
"disable": ["create", "write", "another_method"],
}
NOTE: on the resulting JSON will be automatically formatted on save for better readability.
Usage
Via code
Decorate an Tulio model class like this:
from tulio.addons.rpc_helper.decorator import disable_rpc
@disable_rpc()
class AverageModel(models.Model):
_inherit = "avg.model"
This will disable ALL calls.
To selectively disable only some methods:
@disable_rpc("create", "write", "any_method")
class AverageModel(models.Model):
_inherit = "avg.model"
Via ir.model configuration
See “Configuration” section.
| Technical name | rpc_helper |
|---|---|
| Module version | 12.0.1.0.0 |
| Tulio versions | 1.0 |
| Category | Tools |
| Publisher | Contaura LLC
Ported to Tulio, tested and supported by Contaura LLC. |
| Original authors | Camptocamp, OCA |
| License | LGPL-3
Open source: you may use, change and share
this module under its license. The price covers the Tulio port, its testing on Tulio
1.0 and the download. |
| Requires (Tulio core) | base_sparse_field |
| Lines of code | 220 |
| Downloads | 0 |
| Released | 12/06/2026 |