Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2867 Tampilan

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

Avatar
Buang
Jawaban Terbai

Hello there, 

Try

cr = self._cr

cr.execute("""

            SELECT count(*)

              FROM modelname

             WHERE yourconditions

        """)

Thanks

Anisha Bahukhandi

Technical Content Writer

Avatar
Buang