Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2860 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

Hello there, 

Try

cr = self._cr

cr.execute("""

            SELECT count(*)

              FROM modelname

             WHERE yourconditions

        """)

Thanks

Anisha Bahukhandi

Technical Content Writer

Imagine profil
Abandonează