[IMP] web_advanced_search: Debug mode

pull/1579/head
Alexandre Díaz 2020-04-15 14:59:44 +02:00
parent 6586fa885e
commit 754eea0c46
5 changed files with 13 additions and 1 deletions

View File

@ -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 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. 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 Known issues / Roadmap
====================== ======================

View File

@ -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 advanced search in the selection search window. You can do
this indefinetely, so it is possible to search for moves belonging 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. 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

View File

@ -413,6 +413,11 @@ with a credit limit higher than X):</p>
advanced search in the selection search window. You can do advanced search in the selection search window. You can do
this indefinetely, so it is possible to search for moves belonging 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.</p> to a journal which has a user who is member of a certain group etc.</p>
<dl class="docutils">
<dt>Note also the domain dialog offers an editable preview in debug mode:</dt>
<dd><img alt="https://raw.githubusercontent.com/OCA/web/12.0/web_advanced_search/static/img/debug_mode.png" class="first last" src="https://raw.githubusercontent.com/OCA/web/12.0/web_advanced_search/static/img/debug_mode.png" />
</dd>
</dl>
</div> </div>
<div class="section" id="known-issues-roadmap"> <div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#id5">Known issues / Roadmap</a></h1> <h1><a class="toc-backref" href="#id5">Known issues / Roadmap</a></h1>

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -16,6 +16,7 @@ odoo.define("web_advanced_search", function (require) {
var SearchView = require("web.SearchView"); var SearchView = require("web.SearchView");
var Widget = require("web.Widget"); var Widget = require("web.Widget");
var Char = core.search_filters_registry.get("char"); var Char = core.search_filters_registry.get("char");
var config = require("web.config");
var _lt = core._lt; var _lt = core._lt;
@ -105,7 +106,7 @@ odoo.define("web_advanced_search", function (require) {
this.dataset.model, this.dataset.model,
"[]", "[]",
{ {
debugMode: core.debug, debugMode: config.debug,
readonly: false, readonly: false,
} }
); );