Thursday, September 4, 2025
1 change · saas-18.1
Enhancements to existing features
This update makes an internal check for related accounting documents clearer and less prone to confusion when customer follow-up records are processed. It helps maintain reliable follow-up behavior without changing what users see or do.
Original PR description
Refactored the SQL construction for checking the existence of related account.move records for res.partner entries. The account.move query is now built separately and referenced explicitly, making the code more readable and reducing the chance of ambiguity in field resolution. Using `SQL.identifier(query.table, "id")` ensures that the correct table is referenced in each condition, which is particularly important when dealing with multiple joins or subqueries. Forward-Port-Of: odoo/enterprise#83770