Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
AungKoKoLin1997 committed May 8, 2023
1 parent 859a5cd commit abde10b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions base_custom_filter/models/ir_filters_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit abde10b

Please sign in to comment.