Skip to content

Commit df3ebce

Browse files
committed
[FIX] tests/test_util: filters in sort must be a JSON array
Since odoo/odoo@5b95abb8 we enforce `sort` column to be a stringified JSON array of field names. closes #110 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent 86d814b commit df3ebce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base/tests/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def test_remove_field(self, domain, expected):
394394
cr = self.env.cr
395395
cr.execute(
396396
"INSERT INTO ir_filters(name, model_id, domain, context, sort)"
397-
" VALUES ('test', 'base.module.update', %s, '{}', 'id') RETURNING id",
397+
" VALUES ('test', 'base.module.update', %s, '{}', '[]') RETURNING id",
398398
[str(domain)],
399399
)
400400
(filter_id,) = cr.fetchone()

0 commit comments

Comments
 (0)