summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorRobot Odoo <xmo+roboto@odoo.com>2019-03-19 12:11:28 +0100
committerGitHub <noreply@github.com>2019-03-19 12:11:28 +0100
commitb07dfedbd3ee7a23ce659b8a55b8cd2095dfcd8a (patch)
tree154eca56b795b00be2f6335499233588321334f0 /addons/web/static/tests/fields/basic_fields_tests.js
parent7e35c40c5ad778c1ba41a5b0c0d7d23f30af536a (diff)
parentbdc0b4b892dc17c0a51e454740633edc26f3de6d (diff)
[FIX] lunch: make it work on mobile
This module didn't worked on mobile: user cannot select the products or see their cart. This commit reworks the LunchKanbanWidget template and introduces a dedicated template for mobile. This template introduces a button at the bottom of the screen to toggle the "cart" widget on mobile (hiding it by default). It tries to make the best use of the existing Bootstrap classes allowing to have a more responsive layout and reducing the custom CSS required by this module (both in desktop and in mobile). This commit adds a decent JS tests-suite (mobile & desktop) to this module as the existing one left substential parts of the UI untested (opening wizard when clicking on a kanban record, cart's lines content, clear cart button, widget structure and content based on the state...). Those tests are also less based on DOM nodes order/tag names and use instead dedicated classnames. It also modifies the LunchKanbanRecord click handling to had a dedicated event handler instead of overriding the default _onGlobalClick() and make it more testable. Finally this commit also remove unused code. Task ID: 1945032 closes odoo/odoo#31428 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions