Skip to Content
Menu
This question has been flagged


Hello I want to check output of my query result how i can run that query in pycharm terminal. Here is my created query
self._cr.execute("SELECT name FROM res_partner %s", ('%odoo%',))

data = self._cr.fetchall()
print(data)


Avatar
Discard

I think query should be

self._cr.execute("SELECT name FROM res_partner where name ilike %s", ('%odoo%',))

Related Posts Replies Views Activity
0
Jun 20
2087
0
Nov 19
3621
4
Aug 19
6959
4
Jul 19
7684
0
Sep 23
407