Daily updates from Odoo
Thursday, February 20, 2025
3 changes · 18.0
Enhancements to existing features
Point of Sale screens can now use a simplified HTML editor for restaurant appointment fields, making it easier to edit formatted content directly in POS. The update also prevents errors when the editor runs in this lightweight mode without media features enabled.
Original PR description
### Commit 1 In the point of sale environnement we want to be able to edit html field in a minimal way. So only core plugins are added to the html_editor. As we have a special assets environnement…
### Commit 1
In the point of sale environnement we want to be able to edit html field
in a minimal way. So only core plugins are added to the html_editor.
As we have a special assets environnement for the point_of_sale we can
directly patch the main `htmlField` definition without impacting main
assets of Odoo.
So in Order to make it work we need to remove the preventDefault on
backspace key at the initialization of PoS.
Enterprise: 79703
### Commit 2
The html editor should only work with the “CORE_PLUGINS” plugin set.
But when an HTML field is used only with this Set a traceback is raised
because the “MediaPlugin” plugin is missing.
This is due to this piece of code:
```js
async getEditorContent() {
await this.editor.shared.media.savePendingImages();
return this.editor.getElContent();
}
```
Each time an HTML input is unfocused, this method is called and attempts
to save the pending images. The problem is that media.savePendingImages
depends on the “MediaPlugin”.
A quick fix is made in this commit by adding a question mark after media
to avoid traceback if the plugin is missing.Restaurant appointment screens in Point of Sale can now offer simple HTML text editing. This lets staff make light formatting changes where needed while keeping the POS experience streamlined and avoiding changes to the wider Odoo interface.
Original PR description
In the point of sale environnement we want to be able to edit html field in a minimal way. So only core plugins are added to the html_editor. As we have a special assets environnement for the point_of_sale we can directly patch the main `htmlField` definition without impacting main assets of Odoo. Community: 198482
Planning emails now include shifts scheduled on weekends, so recipients get a complete view of their work schedule. This helps avoid missed assignments and improves communication for teams that operate on Saturdays or Sundays.
Original PR description
Issue: Steps To reproduce: Solutions: opw-4378797