Skip to Content
मेन्यू
This question has been flagged

can i use sql query in my automated (user interface) action with odoo?

Avatar
Discard
Best Answer

Yes, if you select "execute python code", you can execute SQL in automated action as shown in an example:

https://ibb.co/tLpfjWn


Avatar
Discard
Best Answer
query = """
select * from your_table where id = """+str(self.id)+"""
"""
self.env.cr.execute(query)
data = self.env.cr.fetchone()



Avatar
Discard
Related Posts Replies Views Activity
1
सित॰ 21
2964
0
अक्तू॰ 21
1691
2
मार्च 18
9718
3
दिस॰ 23
18677
0
मई 24
947