Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2863 Представления

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

Аватар
Отменить