Daily updates from Odoo
Tuesday, February 25, 2020
4 changes · master
Resolved issues and error corrections
Analytic accounting lines now refer to the currency set on the analytic account instead of defaulting to the company currency. This keeps currency references accurate in cases where analytic accounts use a different currency, with no expected change for standard setups where both currencies match.
Original PR description
Description of the issue/feature this PR addresses: #45995 Current behavior before PR: AAL is referring to company's currency, not analytic account's one. Even though those are the same out of the box. Desired behavior after PR is merged: AAL is referring to account's currency. Effectively, nothing is affected. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Odoo now safely ignores comments placed between conditional template branches, preventing crashes when rendering affected templates. This keeps templates more tolerant of harmless comments while still blocking unsupported content between branches.
Original PR description
Before this commit, when having ```xml <t t-if=""/> <!-- Comment --> <t t-elif=""/> ``` Both python and JS crashed because business node between branching directive is not supported After this commit, Comments of that sort are just ignored and deleted from the resulting DOM
This fixes a cleanup issue in invoice document extraction where repeated screen refreshes could leave unused invisible overlay elements behind. The change keeps the page structure cleaner, helping avoid unnecessary browser overhead without changing how users interact with invoice extraction.
Original PR description
Before this commit, at each thread re-rendering a box layer is created if the uploaded file is an image. When creating the box layer, the old one is replaced by the new one but the old one is not removed from the DOM. It does not cause any functional problem as you only interact with the last created layer, so the other ones are not accessible and useless and as they are transparent they don't cause any problem. By the way, it's not a good thing to have useless DOM elements. This commit fix this problem by removing all the previously created layers from the DOM before replacing them with the newly created one.
This update corrects a small configuration mistake in the Mexican electronic invoicing screens. It helps ensure invoice information is displayed or filtered correctly, reducing confusion for users working with Mexican localization.