@@ -860,7 +860,7 @@ export class StaticList extends DataPoint {
|
||||
const fieldNames = orderBy.map((o) => o.name);
|
||||
const resIds = this._getResIdsToLoad(currentIds, fieldNames);
|
||||
if (resIds.length) {
|
||||
const activeFields = pick(this.activeFields, fieldNames);
|
||||
const activeFields = pick(this.activeFields, ...fieldNames);
|
||||
const config = { ...this.config, resIds, activeFields };
|
||||
const records = await this.model._loadRecords(config);
|
||||
for (const record of records) {
|
||||
|
||||
@@ -2971,6 +2971,12 @@ QUnit.module("Fields", (hooks) => {
|
||||
["abc1", "xyz1"]
|
||||
);
|
||||
|
||||
await click(target.querySelector("table thead [data-name='int_field'].o_column_sortable"));
|
||||
assert.deepEqual(
|
||||
[...target.querySelectorAll(".o_data_row")].map((c) => c.textContent),
|
||||
["abc1", "xyz1"]
|
||||
);
|
||||
|
||||
await click(target.querySelector("table thead [data-name='foo'].o_column_sortable"));
|
||||
assert.deepEqual(
|
||||
[...target.querySelectorAll(".o_data_row")].map((c) => c.textContent),
|
||||
|
||||
Reference in New Issue
Block a user