[FIX] web: remove override of rpc service

closes odoo/odoo#135371

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Jinjiu Liu (jili) <jili@odoo.com>
This commit is contained in:
Michael (mcm)
2023-09-19 16:37:15 +00:00
committed by Jinjiu Liu
parent dfeb387b0e
commit 28f786917f
2 changed files with 1 additions and 6 deletions
-1
View File
@@ -152,7 +152,6 @@ export function makeLegacyRPCService(legacyEnv) {
start(_, { rpc: wowlRPC }) {
const rpc = makeLegacyRPC(wowlRPC);
legacyEnv.services.ajax = { rpc };
legacyEnv.services.rpc = rpc;
},
};
}
@@ -1,7 +1,6 @@
/** @odoo-module **/
import Bus from "@web/legacy/js/core/bus";
import { buildQuery } from "@web/legacy/js/core/rpc";
import { templates } from "@web/core/assets";
import { renderToString } from "@web/core/utils/render";
const { App, Component } = owl;
@@ -41,10 +40,7 @@
hotkey: { add: () => () => {} }, // fake service
notification: { notify() {} },
ajax: { rpc },
rpc(params, options) {
const query = buildQuery(params);
return rpc(query.route, query.params, options);
},
rpc,
ui: { activeElement: document }, // fake service
...env.services,
},