Monday, August 1, 2022
10 changes · master
New functionality added to Odoo
Line charts can now be displayed as stacked charts across Odoo's general graph views, reusing a capability that was previously limited to Project burndown charts. This makes it easier for users to compare cumulative trends and contributions over time in visual reports.
Original PR description
Added stacked option on line chart. The option already existed in Project for burndown graph, so I exported and adapted everything concerning stacked lines from Project to Web.
Enhancements to existing features
Guest users now appear more consistently in chat channel member lists, including their online availability status. This helps teams better understand who is present and reachable in conversations, even when participants are not full internal users.
Original PR description
task-2664860
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
Code cleanup and technical improvements
The public live chat code has been reorganized to use the same modern structure as Odoo's Discuss app. This should make live chat easier to maintain and improve over time, with limited immediate change for end users.
Original PR description
*: website_livechat This commit is a step towards refactoring the JS of public livechat, so that it reuses the same architecture as the code of Discuss. This implies code that uses JS models and OWL components. Task-2939083
Live chat handling has been improved so chatbot step timing is managed more cleanly through the live chat button view. This supports a smoother and more reliable visitor chat experience while keeping the change focused on the live chat module.
Original PR description
Task-2937919
The live chat experience has been updated so the chat button can manage and display new messages more reliably. This helps visitors receive chat notifications and chatbot messages in a smoother, more consistent way.
Original PR description
Task-2937881
The live chat experience has been improved so chatbot conversations can be restored more reliably when visitors return or continue a session. This helps reduce lost context for customers and supports smoother handoffs during website conversations.
Original PR description
Task-2937848
Down payments linked to sale orders are now shown in a way that makes draft invoices easier to distinguish from confirmed or paid down payments. This helps users avoid confusing unconfirmed draft amounts with actual recorded payments.
Original PR description
When creating down payments for sale orders the down payments where shown even if the invoice was on a 'draft' status. This might be confusing for users that cannot differentiate then between draft payments and confirmed or paid down payments. Now down payments in draft state are easily discernible. Task - 2702407
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