diff options
| author | Pierre Paridans <app@odoo.com> | 2019-04-12 13:49:15 +0000 |
|---|---|---|
| committer | Pierre Paridans <app@odoo.com> | 2019-05-23 13:12:58 +0000 |
| commit | 4d1cce97a952b01ace7ecab5b25fc6fcf50988b7 (patch) | |
| tree | 63f0adee9eac4c59e2107252f9b8185345b4770c /addons/lunch/static | |
| parent | 627fd7724813a580ecac566c3972d7653df36588 (diff) | |
[IMP] lunch,web: don't disable SearchPanel on mobile
SearchPanel widget in kanban views has been introduced in commit
https://github.com/odoo/odoo/pull/30517/commits/25c9355c02485e85914430188f3281246fc54cda.
But this feature was disabled for mobile.
This commit removes unneeded differentiation between desktop and mobile
for the SearchPanel.
It also adapt related tests to reflect this change.
Task ID: 1917277
Diffstat (limited to 'addons/lunch/static')
| -rw-r--r-- | addons/lunch/static/tests/lunch_kanban_mobile_tests.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/addons/lunch/static/tests/lunch_kanban_mobile_tests.js b/addons/lunch/static/tests/lunch_kanban_mobile_tests.js index 5b110b3f0b9..f17bef77f8c 100644 --- a/addons/lunch/static/tests/lunch_kanban_mobile_tests.js +++ b/addons/lunch/static/tests/lunch_kanban_mobile_tests.js @@ -29,6 +29,14 @@ QUnit.module('LunchKanbanView Mobile', { return Promise.resolve(); }, }, + 'lunch.product.category': { + fields: {}, + records: [], + }, + 'lunch.supplier': { + fields: {}, + records: [], + }, 'ir.model.data': { fields: {}, xmlid_to_res_id() { @@ -51,7 +59,7 @@ QUnit.module('LunchKanbanView Mobile', { }, }, function () { QUnit.test('basic rendering', async function (assert) { - assert.expect(9); + assert.expect(7); const kanban = await createLunchKanbanView({ View: LunchKanbanView, @@ -76,10 +84,6 @@ QUnit.module('LunchKanbanView Mobile', { "should have 1 records in the renderer"); // check view layout - assert.containsOnce(kanban, '.o_content > div', - "should have 1 column"); - assert.containsNone(kanban, '.o_content > div.o_search_panel', - "shouldn't have a 'lunch filters' column"); assert.containsOnce(kanban, '.o_content > .o_lunch_kanban', "should have a 'kanban lunch wrapper' column"); assert.containsOnce(kanban, '.o_lunch_kanban > .o_kanban_view', |
