Search 1.9 billion lines of Odoo code on GitHub

web_contextual_search_favorite

Author: Numigi
License: LGPL-3
Branch: 14.0
Repository: Numigi/odoo-web-addons
Dependencies: board, and web
Languages: JSON (11, 2.4%), JavaScript (400, 85.5%), Python (18, 3.8%), XML (11, 2.4%), and reStructuredText (28, 6.0%)
Other branches: 11.0, 11.0-website_sale_sanitized, 12.0, 12.0-web_list_column_text_align, TA#47984, TA#48575, and TA#48575-1

<h1 class="title">Web Contextual Search Favorite</h1> <p>In a list view, when you add a favorite by clicking on Favorites -&gt; Add to my Dashboard, the saved view is not contextual.</p> <p>Odoo evaluates the search filters at the moment you click on the button and stores the result in your custom dashboard. Therefore, if you have a date filter that indiquates today, the view will be stored with an hardcoded string date. If you go back to this view another day, the view will not be refreshed.</p> <a name="differences-with-odoo-version-11-0"></a> <h2>Differences with Odoo version 11.0</h2> <p>In Odoo version 11.0, we had the same issue when adding a custom filter. Custom filters were evaluated when clicking on Save.</p> <p>Since version 12.0, these are evaluated when rendering the view. Dashboard are still non-contextual, so this module is still relevant for that part.</p> <a name="building-assets"></a> <h2>Building Assets</h2> <p>If you modify a javascript file of this module, then you might need to rebuild the javascrip assets.</p> <p>Make sure you have webpack-cli installed. `` npm install -g webpack-cli ``</p> <p>In order to rebuild the assets, open a terminal and execute the following commands:</p> <p>`` cd web_contextual_search_favorite/static webpack-cli ``</p> <a name="contributors"></a> <h2>Contributors</h2> <ul class="simple"> <li>Numigi (tm) and all its contributors (<a class="reference external" href="https://bit.ly/numigiens">https://bit.ly/numigiens</a>)</li> </ul>