Monday, July 8, 2024
3 changes · saas-17.2
Resolved issues and error corrections
Belgian partner VAT listing warnings are now displayed correctly again. This helps users notice important issues before submitting or reviewing VAT listing reports.
Original PR description
Currently the warning of the partner VAT listing is never shown. In 88b449b08e21700e9dd113250125b2c3daa65a0f (17.2) the warnings for custom report handlers were moved from `_custom_line_postprocessor` to a new function called `_customize_warnings`. Currently this is not the case for the partner VAT listing. This commit does the necessary change for the partner VAT listing. (This commit does not belong to any task)
This fix stops the web interface from registering the same template extension more than once. It reduces the risk of unexpected crashes when duplicate frontend assets are loaded, improving stability for users.
Original PR description
Before that commit, it was possible to register several times the same template extension. This can lead to crash in some occasions. For example consider the template
```xml
<t t-name="A">
<div attr="a" />
</t>
```
and its extension
```xml
<t t-name="B" t-inherit="A" t-inherit-mode="extension">
<xpath expr=".//div[@attr='a']" position="attributes">
<attribute name="attr">b</attribute>
</xpath>
</t>
```
In that case, when building the template A with B registered twice, the first application of B to A will succeed while the second application will cause a crash (no target found for the xpath).
Here we prevent multiple registering of the same template extensions. Note that this is similar to what happens when the same js module is received several times: odoo.define has no effect after the first registering.The message composer now displays recipient names and joining words with proper spacing in the chatter. This makes the recipient list easier to read and avoids a small visual glitch when sending messages.
Original PR description
Before this commit the recipients list displayed when sending a message on the chatter missed spacing between the recipients and conjunctions. This happens because the container has display flex which removes whitespace from child elements. This commit fixes the issue by wrapping the list in a div tag so to preserve the whitespace. task-4032550 Before:  After: 