Tuesday, February 18, 2025
3 changes · saas-18.1
Resolved issues and error corrections
Editing tags in the many-to-many tag widget now refreshes the changed tag directly instead of removing and re-adding it. This preserves tag order and prevents accidental deletion in related record setups where removal commands can cascade.
Original PR description
Have a many2many_tags widget with `edit_tags` option enabled. Click on a tag to edit it, make a change in the dialog and click save. Before this commit, for the change to be reflected in the tag, we…
Have a many2many_tags widget with `edit_tags` option enabled. Click on a tag to edit it, make a change in the dialog and click save. Before this commit, for the change to be reflected in the tag, we generated a forget command (3), followed by a link_to (4). As already pointed out here [1], this hack had some drawbacks: the tag order was lost upon edition, as the edited tag was moved to the end. There was another problem. For one2many fields whose corresponding many2one has constraint `ondelete cascade`, commands 3 are treated like commands delete (2). As a consequence, in that kind of setup, editing a tag actually deleted it. To fix those issues, this commit simply forces a reload of the edited tag, instead using the commands 3 and 4. [1] https://github.com/odoo/odoo/pull/165935#pullrequestreview-2068519552 Task-4567058 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
This update improves the Point of Sale preset experience by cleaning up forms and popups, clarifying labels and placeholders, and restoring clear color cues for time slot availability. It also fixes return presets so cart quantities are correctly shown as negative and makes ticket and product card information easier to read.
Original PR description
This commit consists of:
Preset form
- realingment
- add tip in case of return mode without pricelist
- add placeholder on pricelist and fp
- Rename timing to time slots
Preset selection popup
- reduce modal size
Slot selection popup
- reput css rule to make slot button red if full, green if still available and future and secondary if past.
When clicking on a preset which is a return preset, the quantities already in the cart becomes negatives
Change bg-color and opacity of the quantity in cart span on the product_cards
Add time slot in the ticket screen:
- white if future preset
- orange if current preset
- red if past preset
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThis fix ensures that reloading Odoo after opening a saved or dynamic view keeps the intended filters and context, instead of falling back to broader records. It also prevents company-specific context from being reused after switching companies, reducing errors and avoiding records from an inactive company being shown.
Original PR description
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