ho to Run sql update commande from Automated actions / Python code - Odoo 12
Hello
can i run an sql update commande from python code of automated actions
any one can help me please?
Best regards
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
ho to Run sql update commande from Automated actions / Python code - Odoo 12
Hello
can i run an sql update commande from python code of automated actions
any one can help me please?
Best regards
Hello there,
Try
cr = self._cr
cr.execute("""
SELECT count(*)
FROM modelname
WHERE yourconditions
""")
Thanks
Anisha Bahukhandi
Technical Content Writer
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up