[FIX] web: toggle checkboxes when clicked in editable list view

Previously, the checkbox was not checked when it was clicked in
editable list view, it only opened the row but did not check the
checkbox.
This commit is contained in:
David Monjoie
2017-05-10 15:20:03 +02:00
parent ec3baa6027
commit e1edd62320
6 changed files with 44 additions and 18 deletions
@@ -237,10 +237,10 @@ QUnit.module('basic_fields', {
assert.strictEqual(list.$('tbody td:not(.o_list_record_selector) .o_checkbox input:checked').length, 3,
"should still have only 3 checked input");
// Re-Edit the line to check the checkbox back
// Re-Edit the line to check the checkbox back but this time click on
// the checkbox directly in readonly mode !
$cell = list.$('tr.o_data_row:has(.o_checkbox input:not(:checked)) td:not(.o_list_record_selector)').first();
$cell.click();
$cell.find('.o_checkbox input:not(:checked)').click();
$cell.find('.o_checkbox span').click();
// save
list.$buttons.find('.o_form_button_save').click();