can i use sql query in my automated (user interface) action with odoo?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
2
Réponses
5460
Vues
Yes, if you select "execute python code", you can execute SQL in automated action as shown in an example:
query = """
select * from your_table where id = """+str(self.id)+"""
"""
self.env.cr.execute(query)
data = self.env.cr.fetchone()
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
1
sept. 21
|
2539 | ||
|
0
oct. 21
|
1691 | ||
|
2
mars 18
|
9303 | ||
|
3
déc. 23
|
18360 | ||
|
0
mai 24
|
667 |