I have a button which call a subprocess inside the method, that subprocess is a python script which update the received record on the database. (using psycopg2)
I tried to re instance after the subprocess.check_output() like:
updated_invoice = Pool().get(‘account_invoice’)
But I see the old record (without the information added by the script), ¿Is there any way yo tell the ORM to refresh or query again the db?
PD: If I click the button again, the record has the new information, I guess it’s because tryton is using a new transaction
Thanks in advance.