Hi, I would like to know if there is a way execute SQL statements using python-sql’s table() from models in Proteus. I wrote a script that process some data offline using models and custom sql query. Normally if this were written inside a Trytond module, I would use the cursor from the Transaction instance, i.e.:
Regarding the trytond-console approach, is there a way to load a script and have it execute from the command line or console? Something like in Postgresql client psql where you type
Nevermind, I was just confused on how trytond-console works, it is actually a trytond capable python console, so I answered my own question. I just use “exec()” just like in a Python console.