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

        issue8449
        review281731002
        (grafted from 47870f8a786cc7fb70c98105c41ffcf0ae2a66a4)
diffstat:

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

diffs (12 lines):

diff -r 32280e578af1 -r 742bb4224330 account.py
--- a/account.py        Tue Feb 19 21:55:44 2019 +0100
+++ 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