Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2819 มุมมอง

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

อวตาร
ละทิ้ง