Friday, January 17, 2025
4 changes · saas-17.4
Resolved issues and error corrections
Purchase order portal pages now show tax descriptions correctly when they include formatted text. This prevents customers or vendors from seeing incomplete tax information in the portal view.
Original PR description
From saas-17.4, the "description" field on "account.tax" has been changed from Char to Html. However, the portal view for the purchase order does not correctly render HTML fields in the taxes column. As a result, the taxes are displayed using only the "name" field in the portal purchase order view. opw-4439126 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Closing a Point of Sale session no longer incorrectly shows a warning that another user is closing it. This reduces confusion for cashiers and managers during end-of-day operations.
Original PR description
Fix issue that was always displaying popup "The session is being closed by another user. The page will be reloaded." each time you close a session. Now the `login_number` is correctly send in the context and can then be used inside `close_session_from_ui` correctly. task-id: 4485659 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
Quotation PDFs now display order date and time fields using Odoo's locale-specific format instead of a longer generic format. This keeps printed quotation templates consistent with the rest of Odoo and helps dates fit better in form fields.
Original PR description
Versions -------- - saas-17.4+ Steps ----- 1. Create a new quotation template; 2. add a header which uses the `date_order` field; 3. configure the mapping from this form field to the record field; 4. print the quotation template. Issue ----- The datetime is formatted as "Jan 16, 2025, 5:59:26 PM", which is different from how dates are formatted, or how datetimes are usually formatted elsewhere in Odoo. Additionally, it may also be too long to fit in the form field. Cause ----- The `format_datetime` function is used without a `dt_format` specified, falling back on the default `'medium'`: https://github.com/odoo/odoo/blob/cbd5531697954ec62d79e0eec2c00bd61cd8b0e4/odoo/tools/misc.py#L1399 Solution -------- In order to get the format defined for the relevant locale in Odoo, `dt_format=False` should be specified in the `format_datetime` call: https://github.com/odoo/odoo/blob/cbd5531697954ec62d79e0eec2c00bd61cd8b0e4/odoo/tools/misc.py#L1427-L1430 opw-4414688
The delivery location selector map now places pins accurately at the selected location. This prevents confusion when customers or staff choose delivery points, especially when zooming in or out on the map.
Original PR description
Before this commit, markers on the location selector map were misaligned. The misalignment was proportional to the zoom level, as the marker incorrectly used the top-left corner of the anchor as its reference. This commit resolves the issue by defining the correct icon anchor position for markers.