Legacy rpc - vec-ltd/odoo-docs GitHub Wiki

You can get an instance of this using

import ajax from 'web.ajax';

Then you can call the rpc using

ajax.rpc;

Widgets

Note if you are in a widget, you can use

this._rpc

instead