Wednesday, October 16, 2024
3 changes · saas-17.2
Resolved issues and error corrections
When adding new content to an online course with multiple sections, the system now automatically selects the most recently created section if no section was chosen. This reduces extra clicks and helps course editors continue adding content in chronological order.
Original PR description
Purpose ======= When users are editing course content and created multiple sections they are most likely working "chronologically" adding content to sections one after the other. It seems the fix to preselect last section by default when many exist to populate new content is in regression. How to fix ========== Whenever a channel has sections and users has not selected one: make the last section as the default one. task-4109586 see odoo#132934 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix ensures invoice tax is calculated from the same rounded base amount shown as the tax-excluded total. It prevents small mismatches in tax totals, such as a one-cent difference, when global rounding is used with discounted invoice lines.
Original PR description
### Steps to reproduce the issue: 1. Make sure the Rounding Method is set to "Round Globally" 2. Have a Tax of 21% 3. Create a Product with sale price 5.75 and set the Sale Tax 4. Create an Invoice and add 6 lines with the Product 5. For each line, set the quantity to 5 and add an 18% discount 6. The Tax Amount is of 29.70 when the Total Tax Excluded is of 141.48 (141.48 * 21% ~= 29.71) ### Explanation: Since 17.2, the base amount of a tax is not rounded before the calculation of the tax amount, this creates an issue where the base amount and `amount_untaxed` are different when `tax_calculation_rounding_method` is set to 'round_globally'. (e.g.: 141.45 vs 141.48) ### Fix reasoning: `raw_price` is rounded out if `precision_rounding` is specified to avoid rounding to unit, it will replace all occurences of `price_unit * quantity` in the tax calculation. opw-4136024
The calendar library used by Odoo was updated to prevent a crash when viewing tasks with back-to-back scheduling. This improves reliability for users working with project and timesheet calendars, especially around dense task schedules.
Original PR description
Steps to reproduce: - Install Timesheet - Delete all tasks - Run server actions to create tasks with the following scripts https://gist.github.com/mattismegevand/5db26ee9d1e7756e7fe4600897244c1e - Go to Project -> Tasks -> All tasks - Switch to calendar view and go to june 2024 Issues: A traceback appears, the cause is an infinite recursion caused by the computation of the intersection. Since two events are next to each other their intersection is null but fullcalendar try to compute it anyway which leads to the intersection span being null which causes a traceback. I suspect that the fix is https://github.com/fullcalendar/fullcalendar/commit/362a37345a4b7cb65d16f345e8555f727f1c8450 However for good measure and to fix preemptively other bug from fullcalendar an update seems like the best decision. opw-3997810