New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] account: instant payment post process #31732
[FIX] account: instant payment post process #31732
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the condition ('is_processed', '=', False)
in
('is_processed', '=', False), |
?
And why is the cron hardcoded to process transactions older than 10 minutes?
Here is the explanation of why 10 minutes : 84b976f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, as Nicolas says we need to check if the transaction hasn't been already processed (shouldn't be the case, but better be safe than sorry).
Otherwise it looks good to me :)
When register a payment, and choosing a payment acquired. Before this commit, the payment post process had to wait until a cron run (every 10 minutes). Now, The post process is executed instantly after the payment, if the payment is not yet done, the post process will be executed in the next cron run. Co-authored-by: Toufik Benjaa <tbe@odoo.com> opw-1928834
2e1b501
to
1f74d75
Compare
I just made the changes you asked for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
robodoo r+
When register a payment, and choosing a payment acquired. Before this commit, the payment post process had to wait until a cron run (every 10 minutes). Now, The post process is executed instantly after the payment, if the payment is not yet done, the post process will be executed in the next cron run. Co-authored-by: Toufik Benjaa <tbe@odoo.com> opw-1928834 closes #31732 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Merged, thanks! |
When register a payment, and choosing a payment acquired.
Before this commit, the payment post process had to wait until a cron
run (every 10 minutes).
Now, The post process is executed instantly after the payment, if the
payment is not yet done, the post process will be executed in the next
cron run.
Co-authored-by: Toufik Benjaa tbe@odoo.com
opw-1928834