Public release from ruodoo-project: 19.0 - 2026-08-30 21:16:35 UTC
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import {ResConfigDevTool} from "@web/webclient/settings_form_view/widgets/res_config_dev_tool";
|
||||
import {patch} from "@web/core/utils/patch";
|
||||
import {router} from "@web/core/browser/router";
|
||||
|
||||
patch(ResConfigDevTool.prototype, {
|
||||
setup() {
|
||||
super.setup(...arguments);
|
||||
this.isTranslate = Boolean(odoo.translate);
|
||||
},
|
||||
|
||||
activateTranslate(value) {
|
||||
router.pushState({translate: value}, {reload: true});
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user