summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-03-12 14:17:36 +0000
committerNans Lefebvre <len@odoo.com>2019-03-12 14:17:38 +0000
commit37689b189ee904497eb0ce0097ecf013cac1a91c (patch)
tree1af3cca965c66228b38137921f16bf919e74faef /addons/web/static/src/js/views/basic/basic_model.js
parent7e2f9634d256918e18bbc994063bf70bf1aa874e (diff)
[FIX] payment: do not retry indefinitely to post process transactions
Suppose that a payment transaction cannot be reconciled for any reason. Then _cron_post_process_after_done will try to process it every 10 minutes until the end of time. Moreover, if the user takes some manual action before _cron_post_process_after_done, even if in principle it would have been able to go through, then it is likely to fail, e.g. on invoice_open. Meaning that a transaction that could have been processed will become an undead transaction. To avoid that situation we set an arbitrary retry_limit_date set to 2 days, which seems a reasonnable compromise. It gives some time for the transaction to go through, but not exaggeratedly so. opw 1945953 closes odoo/odoo#31791 Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions