Daily updates from Odoo
Friday, August 19, 2022
3 changes · master
Resolved issues and error corrections
This fixes the text color on bank reconciliation model buttons so labels appear in white as intended. The change improves readability and keeps the accounting interface visually consistent for users.
Original PR description
The text color should be white. task: 2928259
Some preloaded records created from XML were treating HTML content as XML, which could add unwanted headers or wrappers. This update marks those fields correctly so demo and configuration content displays as intended across affected apps.
Original PR description
When a record is created through xml data, its HTML fields should receive a `type="html"` attribute, not a `type="xml"` attribute. When important XML data with XML type instead of HTML type will have 2 differences: - The field value will be prefixed by `<?xml version="1.0"/>` - If the HTML contains multiple root nodes, the value will be wrapped in a `<data/>` tag. See `_fix_multiple_roots()` and the `xml_import` class for more details.
This update adjusts several accounting and Studio screens to work correctly with the newer Bootstrap version used by Odoo. It prevents errors and broken expand/dropdown behavior in reports, follow-up views, asset reports, and Studio-managed views.
Original PR description
in bootstrap 5.x the toggle attribute changed from `data-toggle` to
`data-bs-toggle`, so we have to change `data("toggle")` by
`data("bs-toggle")`
https://getbootstrap.com/docs/4.6/components/collapse/
https://getbootstrap.com/docs/5.1/components/collapse/
Also using `$el[0].dataset.bsToggle` instead of `$el.data("toggle")` is
better since `data()` can be confusing
```js
const a = document.createElement("a");
> <a></a>
a.setAttribute("data-bs-toggle", "dropdown")
> <a data-bs-toggle="dropdown"></a>
a.dataset
> DOMStringMap {toggle: 'dropdown', bsToggle: 'dropdown'}
$(a).data()
> {}
```
https://pad.odoo.com/p/wowl_views
[aju] https://watch.screencastify.com/v/XuuQTkKRFX3lJh1vnvt9 project.task
kanban view > schedule an activity > mark it as done > traceback
https://pastebin.com/i96Krxrb
community: https://github.com/odoo/odoo/pull/98339