diff --git a/web_advanced_search/README.rst b/web_advanced_search/README.rst index a0ac2b718..3d9a273e6 100644 --- a/web_advanced_search/README.rst +++ b/web_advanced_search/README.rst @@ -58,6 +58,9 @@ advanced search in the selection search window. You can do this indefinetely, so it is possible to search for moves belonging to a journal which has a user who is member of a certain group etc. +Note also the domain dialog offers an editable preview in debug mode: + .. image:: https://raw.githubusercontent.com/OCA/web/12.0/web_advanced_search/static/img/debug_mode.png + Known issues / Roadmap ====================== diff --git a/web_advanced_search/readme/USAGE.rst b/web_advanced_search/readme/USAGE.rst index 9e1ac6d3f..07a69f433 100644 --- a/web_advanced_search/readme/USAGE.rst +++ b/web_advanced_search/readme/USAGE.rst @@ -20,3 +20,6 @@ Note that you can stack searching for properties: Simply add another advanced search in the selection search window. You can do this indefinetely, so it is possible to search for moves belonging to a journal which has a user who is member of a certain group etc. + +Note also the domain dialog offers an editable preview in debug mode: + .. image:: ../static/img/debug_mode.png diff --git a/web_advanced_search/static/description/index.html b/web_advanced_search/static/description/index.html index e3b2e7903..9a6915163 100644 --- a/web_advanced_search/static/description/index.html +++ b/web_advanced_search/static/description/index.html @@ -413,6 +413,11 @@ with a credit limit higher than X):

advanced search in the selection search window. You can do this indefinetely, so it is possible to search for moves belonging to a journal which has a user who is member of a certain group etc.

+
+
Note also the domain dialog offers an editable preview in debug mode:
+
https://raw.githubusercontent.com/OCA/web/12.0/web_advanced_search/static/img/debug_mode.png +
+

Known issues / Roadmap

diff --git a/web_advanced_search/static/img/debug_mode.png b/web_advanced_search/static/img/debug_mode.png new file mode 100644 index 000000000..e9a4b46ff Binary files /dev/null and b/web_advanced_search/static/img/debug_mode.png differ diff --git a/web_advanced_search/static/src/js/web_advanced_search.js b/web_advanced_search/static/src/js/web_advanced_search.js index 00a488fbd..2eb928330 100644 --- a/web_advanced_search/static/src/js/web_advanced_search.js +++ b/web_advanced_search/static/src/js/web_advanced_search.js @@ -16,6 +16,7 @@ odoo.define("web_advanced_search", function (require) { var SearchView = require("web.SearchView"); var Widget = require("web.Widget"); var Char = core.search_filters_registry.get("char"); + var config = require("web.config"); var _lt = core._lt; @@ -105,7 +106,7 @@ odoo.define("web_advanced_search", function (require) { this.dataset.model, "[]", { - debugMode: core.debug, + debugMode: config.debug, readonly: false, } );