Sunday, January 12, 2025
2 changes · saas-17.2
Miscellaneous changes
Steps to reproduce: - Create an invoice with a future date and set auto post to "At Date." - Add an item with a start date in the past and an end date. - In list view, click "Post entries" and validate without checking "Force." Deferred entries are created with reference "Deferral of /" and posted. When the invoice auto-posts, new deferrals are created. The fix ensures `_generate_deferred_entries` is not called if the move is not posted. opw-4357335 Forward-Port-Of: odoo/enterprise#
Original PR description
Steps to reproduce: - Create an invoice with a future date and set auto post to "At Date." - Add an item with a start date in the past and an end date. - In list view, click "Post entries" and validate without checking "Force." Deferred entries are created with reference "Deferral of /" and posted. When the invoice auto-posts, new deferrals are created. The fix ensures `_generate_deferred_entries` is not called if the move is not posted. opw-4357335 Forward-Port-Of: odoo/enterprise#75661
This commit ensures the asynchronous fetching cron is activated or deactivated only when necessary. Previously, the cron was executed every 5 minutes to check for online accounts to fetch transactions, even when none were present, leading to useless call to the cron. With this update, a toggle function is introduced, which is triggered whenever a journal or an online account is created, modified, or removed. Before deactivating the cron, the function verifies that no journals with an online
Original PR description
This commit ensures the asynchronous fetching cron is activated or deactivated only when necessary. Previously, the cron was executed every 5 minutes to check for online accounts to fetch transactions, even when none were present, leading to useless call to the cron. With this update, a toggle function is introduced, which is triggered whenever a journal or an online account is created, modified, or removed. Before deactivating the cron, the function verifies that no journals with an online account are currently in the fetching process, preventing unnecessary execution. no task id Forward-Port-Of: odoo/enterprise#76843