Monday, August 1, 2022
3 changes · master
Resolved issues and error corrections
Creating a new record from a list now correctly applies the page context, including preset default values. This prevents avoidable server errors when required fields are supplied through that context but not shown on the list screen.
Original PR description
Before this commit, in a ListView, the view context was not used when creating the record. This caused some problems: - the record does not use "default_" to initialise its data - server-side required fields that are not present in the arch and have a value given in the context return server errors 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
Checkboxes and on/off toggles have been adjusted to display correctly after the Bootstrap 5 migration. This improves visual consistency, spacing, print behavior, and list column sizing accuracy across the web interface.
Original PR description
In the BS5 migration, the legacy `checkbox` and `boolean_toggle` widget
were adapted but not the OWL Component.
Also, we have tweaked the old widget and the component to have better
positioning and margins.
Note:
the CSS for the print is already done in BS5
```css
https://github.com/media print {
.form-check-input {
color-adjust: exact;
}
}
```
Also we change `offsetWidth` by `getBoundingClientRect().width` in
`list_renderer` to avoid inaccurate rounding in columns width's
calculation.
Lastly a `.o-checkbox` class is added to the Checkbox component for a
more universal and context independent targetting.Odoo now avoids creating cost of goods sold entries when delivered products are owned by an external partner. This prevents incorrect accounting costs from being recorded for goods the company does not own.
Original PR description
When a delivered product was owned by an external partner, we should not generate any COGS line OPW-2884211