diff --git a/addons/web/static/src/views/list/list_renderer.xml b/addons/web/static/src/views/list/list_renderer.xml
index f7fcec16f11..1a3191e672f 100644
--- a/addons/web/static/src/views/list/list_renderer.xml
+++ b/addons/web/static/src/views/list/list_renderer.xml
@@ -170,8 +170,8 @@
|
-
-
+ |
+
|
|
diff --git a/addons/web/static/tests/views/list_view_tests.js b/addons/web/static/tests/views/list_view_tests.js
index 6cdf73f9fa4..b5ebd1cb9ed 100644
--- a/addons/web/static/tests/views/list_view_tests.js
+++ b/addons/web/static/tests/views/list_view_tests.js
@@ -2740,6 +2740,25 @@ QUnit.module("Views", (hooks) => {
);
});
+ QUnit.test("aggregates in grouped lists with buttons", async function (assert) {
+ await makeView({
+ type: "list",
+ resModel: "foo",
+ serverData,
+ groupBy: ["m2o"],
+ arch: `
+
+
+
+
+
+ `,
+ });
+
+ const cellVals = ["23", "6.4", "9", "13", "32", "19.40"];
+ assert.deepEqual(getNodesTextContent(target.querySelectorAll(".o_list_number")), cellVals);
+ });
+
QUnit.test(
"hide aggregated value in grouped lists when no data provided by RPC call",
async function (assert) {
@@ -13687,33 +13706,36 @@ QUnit.module("Views", (hooks) => {
assert.strictEqual(document.activeElement, intFieldInput);
});
- QUnit.test("continue creating new lines in editable=top on keyboard nav", async function (assert) {
- await makeView({
- type: "list",
- resModel: "foo",
- serverData,
- arch: `
+ QUnit.test(
+ "continue creating new lines in editable=top on keyboard nav",
+ async function (assert) {
+ await makeView({
+ type: "list",
+ resModel: "foo",
+ serverData,
+ arch: `
`,
- });
+ });
- let initialRowCount = $('.o_data_cell[name=int_field]').length
+ const initialRowCount = $(".o_data_cell[name=int_field]").length;
- // click on int_field cell of first row
- await click(target, ".o_list_button_add");
+ // click on int_field cell of first row
+ await click(target, ".o_list_button_add");
- await editInput(target, ".o_data_cell[name=int_field] input", "1");
- triggerHotkey("Tab");
- await nextTick();
+ await editInput(target, ".o_data_cell[name=int_field] input", "1");
+ triggerHotkey("Tab");
+ await nextTick();
- await editInput(target, ".o_data_cell[name=int_field] input", "2");
- triggerHotkey("Enter");
- await nextTick();
+ await editInput(target, ".o_data_cell[name=int_field] input", "2");
+ triggerHotkey("Enter");
+ await nextTick();
- // 3 new rows: the two created ("1" and "2", and a new still in edit mode)
- assert.strictEqual($('.o_data_cell[name=int_field]').length , initialRowCount + 3);
- });
+ // 3 new rows: the two created ("1" and "2", and a new still in edit mode)
+ assert.strictEqual($(".o_data_cell[name=int_field]").length, initialRowCount + 3);
+ }
+ );
QUnit.test("Date in evaluation context works with date field", async function (assert) {
patchDate(1997, 0, 9, 12, 0, 0);