From abde10bd34569e2d075d5e076b8ef1f3754211ad Mon Sep 17 00:00:00 2001 From: Aungkokolin1997 Date: Mon, 8 May 2023 12:27:12 +0630 Subject: [PATCH] upd --- base_custom_filter/models/ir_filters_group.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/base_custom_filter/models/ir_filters_group.py b/base_custom_filter/models/ir_filters_group.py index af43fbeedf..710d4e22a7 100644 --- a/base_custom_filter/models/ir_filters_group.py +++ b/base_custom_filter/models/ir_filters_group.py @@ -33,9 +33,4 @@ def unlink(self): @api.model def _list_all_models(self): - lang = self.env.lang or "en_US" - self._cr.execute( - "SELECT model, COALESCE(name->>%s, name->>'en_US') FROM ir_model ORDER BY 2", - [lang], - ) - return self._cr.fetchall() + return self.env["ir.filters"]._list_all_models()