How do I execute an SQL query inside an Odoo module? Steps: cr = self.env.cr You can use the self.env.cr object. This object provides a direct connection to the database. cr.execute() Use the cr.execute() method to execute the query. You can pass i...
codeodoo.com1 min read
No responses yet.