Use clear cache after a commit

issue8449
review281731002
This commit is contained in:
Cédric Krier committed 2019-07-08 21:18:45 +02:00
1 parent 8c66472645
commit ada14cdfc4
1 file changed
+2
+2
View File
@@ -201,6 +201,8 @@ class InvoiceChorus(ModelSQL, ModelView, _SyntaxMixin, metaclass=PoolMeta):
])
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)