summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/views/control_panel_tests.js
AgeCommit message (Collapse)Author
2019-03-06[REF] web: adapt code after jQuery updateVincent Schippefilt
Part of task 1896658 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com> Co-authored-by: svs-odoo <svs@odoo.com> Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
2019-02-22[MERGE] forward port branch saas-12.1 up to 0f4abc5c228Christophe Simonis
2019-02-15[FIX] web: control panel load/save filter sort paramLucas Perais (lpe)
Before this commit, the wrong semantics was implemented in the webclient concerning the "sort" char field in ir.filter Loading a filter with a sort with negative order made the webclient crash This field holds a JSON string, representing a list of field names If the order of the field is inverse, there should be a "-" before it for legacy purposes After this commit, the semantics have changed for consistency that is, at save time the sql notation is preferred We support the legacy notation too for backward compatibility closes odoo/odoo#31102
2018-12-18[FIX] web: backspace in empty searchbar inputMartin Geubelle
Before this rev. a crash occurred when pressing backspace in the control panel view searchbar input if there was no facet to remove. The use case is now correctly handled and nothing happens. Task 1902826 closes odoo/odoo#29602
2018-12-17[FIX] web: handle `context` in ControlPanel <filter>Martin Geubelle
The `context` key wasn't correctly taken into account when computing the search query for `filter``tags. It is now correctly handled. Task 1917628 closes odoo/odoo#29529
2018-12-11[FIX] web: do not render invisible filters in search viewGéry Debongnie
In some cases, the web client may receive a search view with invisible filters. This is due to the way field_view_get works. For example, if there is a group on a filter, then this will be transformed into an invisible attribute. In that case, the search view should simply ignore the filter and not display it. This was broken in the recent control panel refactoring (note that the search view lacked the possibility of testing that kind of situation). closes odoo/odoo#29430
2018-12-07[REF] web: move ControlPanel inside controllers/actionsGéry Debongnie
This branch introduces a large-scale reorganization of the component tree generated by the web client. The short version is that now, the control panel is a child of the view controller and no longer a sibling. Graphically (and simplified), we go from this: webClient / | \ ... ... actionManager / \ controlPanel viewController / \ to this: webClient / | \ ... ... actionManager | viewController / | \ ControlPanelController / \ CPRenderer CPModel The motivation is that this work moves the code where it should be. Before this commit, it was kind of weird to have code in the controllers to render buttons outside of their root node (in renderButtons). Also, the action manager had to take care of coordinating search view states between view transitions. So, this work simplifies the code. It also makes it easier to extend. We see day after day that Odoo needs to take care of more complex UI needs, and in many cases, these needs were quite difficult to implement (we prefer spaghettis in our plates, not in our code). The changes in this branch should open the way to implement these features. For example, - it will now be easy to add the possibility of views (for example, the search view or a new ControlPanel view) to add custom buttons (of type action or object) in the control panel. - Another need will be to serialize/ restore the state of the search view across action boundaries (needed by the dashboard). - Another example is the possibility for views to customize easily the presence/absence of sub menus (filters/groupbys/favorites/ time range/...) - Another need is an easier way for views/client action to customize their control panel. This commit also contains a large rewrite of the search view (so it is more inline with our architecture and easier to maintain). Part of task 1893568 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com>
2019-01-09[MERGE] forward port branch saas-12.1 up to 8aa8548d8abChristophe Simonis
2019-01-06[FIX] web: do not render invisible filters in search viewGéry Debongnie
In some cases, the web client may receive a search view with invisible filters. This is due to the way field_view_get works. For example, if there is a group on a filter, then this will be transformed into an invisible attribute. In that case, the search view should simply ignore the filter and not display it. This was broken in the recent control panel refactoring (note that the search view lacked the possibility of testing that kind of situation). closes odoo/odoo#29430 cherry-pick of 13aae100e2bc0589e2313fd4105b39c0eeea4db0 closes odoo/odoo#29965