Disable RPC

Disable RPC

by Contaura LLC · original work by Camptocamp, OCA
rpc_helper
$ 29.00

Helpers for disabling RPC calls

1.0

One purchase covers every version. Already bought it? Sign in.

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 namerpc_helper
Module version12.0.1.0.0
Tulio versions1.0
CategoryTools
PublisherContaura LLC
Ported to Tulio, tested and supported by Contaura LLC.
Original authorsCamptocamp, OCA
LicenseLGPL-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 code220
Downloads0
Released12/06/2026
12.0.1.0.0 Tulio 1.0 · 12/06/2026