changeset 47870f8a786c in modules/account_fr_chorus:default
details: 
https://hg.tryton.org/modules/account_fr_chorus?cmd=changeset;node=47870f8a786c
description:
        Use clear cache after a commit

        issue8449
        review281731002
diffstat:

 account.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r a9a996f73420 -r 47870f8a786c account.py
--- a/account.py        Mon May 06 14:55:38 2019 +0200
+++ b/account.py        Mon Jul 08 21:18:45 2019 +0200
@@ -201,6 +201,8 @@
                     ])
 
         for record in records:
+            # Use clear cache after a commit
+            record = cls(record.id)
             with Transaction().set_context(**record._send_context()):
                 payload = record.get_payload()
                 resp = Credential.post('factures/deposer/flux', payload)

Reply via email to