[REF] *: remove calls to old rpc methods
the performModelRPC methos has been deprecated, this commit replaces all call to that method by calls to the new _rpc method.
This commit is contained in:
committed by
Aaron Bohy
parent
b82cef84b9
commit
5c6818eecf
@@ -64,7 +64,7 @@ odoo.define('website_form_editor', function (require) {
|
||||
rpc.query({model: "ir.model", method: "get_authorized_fields"})
|
||||
.args([this.$target.closest('form').attr('data-model_name')])
|
||||
.withContext(base.get_context())
|
||||
.exec({callback: ajax.rpc.bind(ajax)})
|
||||
.exec({type: "ajax"})
|
||||
.then(function(fields) {
|
||||
// The get_fields function doesn't return the name
|
||||
// in the field dict since it uses it has the key
|
||||
@@ -90,7 +90,7 @@ odoo.define('website_form_editor', function (require) {
|
||||
['id', 'model', 'name', 'website_form_label']
|
||||
])
|
||||
.withContext(base.get_context())
|
||||
.exec({callback: ajax.rpc.bind(ajax)})
|
||||
.exec({type: "ajax"})
|
||||
.then(function(models) {
|
||||
// Models selection input
|
||||
var model_selection = qweb.render("website_form_editor.field_many2one", {
|
||||
@@ -344,7 +344,7 @@ odoo.define('website_form_editor', function (require) {
|
||||
// succeeds... but no idea how to do that
|
||||
rpc.query({model: 'ir.model.fields', method: 'formbuilder_whitelist'})
|
||||
.args([model, _.uniq(fields)])
|
||||
.exec({callback: ajax.rpc.bind(ajax)});
|
||||
.exec({type: "ajax"});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -616,7 +616,7 @@ odoo.define('website_form_editor.tour', function(require) {
|
||||
],
|
||||
[]
|
||||
])
|
||||
.exec({callback: ajax.rpc.bind(ajax)});
|
||||
.exec({type: "ajax"});
|
||||
var success = function(model, data) {
|
||||
if(data.length) {
|
||||
$('body').append('<div id="website_form_editor_success_test_tour_'+model+'"></div>');
|
||||
|
||||
Reference in New Issue
Block a user