跳至內容
選單
此問題已被標幟
831 瀏覽次數

I'm looking to modify the oca web_advanced_search module in Odoo so that the code editor feature is always visible, rather than being restricted to debug mode. My aim is to provide all users with access to this feature for improved search functionality. I attempted a certain approach, but unfortunately, it did not yield the desired results:

odoo.define('custom_web_advanced_search.CustomAdvancedFilterItem', function (require) {
'use strict';

const AdvancedFilterItem = require('web_advanced_search.AdvancedFilterItem');

AdvancedFilterItem.include({
advanced_search_open() {
this._super.apply(this, arguments);
this.debugMode = true;
},
});
});
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 25
2401
2
7月 25
7889
2
7月 25
4295
2
7月 25
4032
2
6月 25
2650