Monday, April 7, 2025
3 changes · saas-17.4
Resolved issues and error corrections
The Point of Sale restaurant interface now prevents a popup from being confirmed twice when users press Ctrl+Enter. This avoids creating duplicate items, such as two restaurant floors with the same name, from a single action.
Original PR description
For the `TextInputPopup` component a feature was introduced
in 2f5c5c15644412cfb6493c661b2f1b927c8cc7e2 that allows the user
to confirm the popup by simply clicking enter.
The problem is that the dialog itself has a hotkey on "CTRL+Enter"
that will also confirm the popup.
This means that if a user uses the "CTRL+Enter" hotkey, the popup will
be confirmed twice.
Steps to reproduce:
1. In restaurant, click the button to add a new floor
2. Write a name for the floor
3. Click "CTRL+Enter"
4. Observe that 2 floors with the given name were created instead of
one.
The fix:
We stop the propagation of the event
Task: 4698289
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThis fix adds back the currency rate information needed for Argentine accounting documents in newer Odoo 17 versions. It prevents issues when related enterprise features expect this value to be available, helping Argentine localization flows work correctly.
Original PR description
PR https://github.com/odoo/enterprise/pull/82924 makes use of the field l10n_ar_currency_rate. But that field is not present in Odoo versions above 17.0 This commit adds it in Odoo. opw-4708505
Fixed an issue where purchase reports could fail when an order had matching positive and negative quantities for the same product at different prices. The report now avoids the invalid calculation, so users can view average cost without encountering an error.
Original PR description
When a purchase order is created with a positive and negative quantity of the same product but different unit prices, the read_group runs into a division by zero error as the `SUM('purchase_report'.'qty_ordered')` is zero.
To prevent this exception, we NULL the denominator if it's 0.
**Example PO that would cause issues when adding "Average Cost" as a measure in the purchase report:**

opw-4684787