mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Improved the efficiency of code: With this improvement we achieve to just do an rpc call when the js file is called instead of do the call for each field.
13 lines
342 B
JavaScript
13 lines
342 B
JavaScript
/* Copyright 2020 Tecnativa - Carlos Roca
|
|
* * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
|
|
odoo.define("web_m2x_options.ir_options", function (require) {
|
|
"use strict";
|
|
|
|
var rpc = require("web.rpc");
|
|
|
|
return rpc.query({
|
|
model: "ir.config_parameter",
|
|
method: "get_web_m2x_options",
|
|
});
|
|
});
|