changeset 4afbf91749a4 in modules/account_fr_chorus:5.2
details:
https://hg.tryton.org/modules/account_fr_chorus?cmd=changeset;node=4afbf91749a4
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 1d0425038bb7 -r 4afbf91749a4 account.py
--- a/account.py Mon May 06 14:55:37 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)