Wednesday, September 11, 2024
2 changes · saas-17.4
Resolved issues and error corrections
Report generation no longer performs the same rendering work twice, reducing unnecessary processing. This should make PDF reports, including invoice reports, generate faster and more reliably for users.
Original PR description
Since changes made in https://github.com/odoo/odoo/pull/167729, collected streams is returned by '_pre_render_qweb_pdf', so we don't need anymore to call '_render_qweb_pdf_prepare_streams' as it is already called in '_pre_render_qweb_pdf'. By removing the second call, we inporve the speed to generate a report by 2. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix ensures subscription renewals are not blocked when the first billing period dates differ, while still keeping contract billing periods set correctly from the start. It helps avoid missed or delayed invoicing for renewed subscriptions.
Original PR description
This reverts commit b9947b15024b8b04a87b592ca81770d5489924ea. The bugfix allows to renew an order even when the next_invoice_date != start_date for first period. The solution is to make sure the periods are correctly set at contract creation. task 4116538