Monday, April 14, 2025
2 changes · saas-18.1
Resolved issues and error corrections
CSV imports and import tests no longer fail with an unexpected backend error when related fields are included. This makes data import more reliable for users and helps ensure meaningful error handling instead of a system crash.
Original PR description
Currently, an error occurs when importing or testing data from a CSV file, particularly when setting related fields. This results in an unhandled error during the error message creation process. **…
Currently, an error occurs when importing or testing data from a CSV file, particularly when setting related fields. This results in an unhandled error during the error message creation process. ** Steps to reproduce:** - Open the **Product Variants** list view. - Import the csv file: [file](https://drive.google.com/file/d/1pW9zBWQ0dzFRBHnLUk3DC34YWuK4tUV0/view?usp=drive_link) - Set the Odoo fields as `Name` and `Products / Cost` accordingly. - Click on `Test` or `Import` button. - Observe the error at the backend. **Error:** `ValueError - not enough values to unpack (expected 1, got 0)` The error occurs because `[columns]` attempts to unpack an empty list when `cr.fetchone()` returns `None` at [1]. This commit ensures that if `cr.fetchone()` returns `None`, `columns` is assigned an empty list without causing an unpacking error. [1] - https://github.com/odoo/odoo/blob/30efa3c90226e77fb175b533dd60734f58a4f27c/odoo/orm/models.py#L7374 This issue will also fix Sentry IDs: 6398456413, 6518332727, 6316946127 Sentry - 6278940594
Helpdesk tickets submitted through a website form now follow the same tag-based auto-assignment rules as tickets created internally. This ensures the right support agent is assigned automatically when customers select relevant tags, reducing manual follow-up.
Original PR description
**Steps to reproduce** On runbot: 1. Activate the website form for the "IT Support (Auto Assignment by Tags)" team. 2. Add the "Tags" field to the form, allowing visitors to select tags for a ticket. 3. Submit a ticket with the "Repair" tag selected. Actual: the ticket is not auto-assigned. Expected: Mitchell Admin is auto-assigned, the same way as if the ticket was created from the backend. **Cause** When using the website form, a `SET` command is used to set the tags, while we are currently only expecting a `LINK` command. opw-4646654