summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/_deprecated/model.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-03-05 09:32:37 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit0df9968433389e0d504276cd711473c2eef937ae (patch)
treeb2de8031109344e4053cdb2141017a3da6e18b36 /addons/web/static/src/js/_deprecated/model.js
parent00a172b40d0fd7edbf7cd7190b2e9db6345e51b5 (diff)
[ADD] web: introduce new RPC framework
With this commit, we introduce a new way to perform a RPC. During the history of the Odoo web client, many ways to do a rpc have been introduced, for various reasons. Let us mention the Model class (to perform a call on a specific method from a model, the web.ajax module (low level primitive), the dataset.call method, the this.rpc method (was removed at some point), the session.rpc method and maybe some others. With this commit, we reintroduce the this.rpc method, with a 'mid-level' API: not really high level (not automatic domain/context calculations), but still higher level than direct web.ajax calls. This new method is intended to replace all other RPCs in Odoo web client. Of course, web.ajax will still be available, but it is discouraged to use it directly. Using the rpc method means that the rpcs are done through an event bubbling up, which means that the call is testable.
Diffstat (limited to 'addons/web/static/src/js/_deprecated/model.js')
0 files changed, 0 insertions, 0 deletions