amr gabercodeodoo.com·Mar 2, 2024Executing SQL Queries in OdooHow 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...OdooAdd a thoughtful commentNo comments yetBe the first to start the conversation.