Saturday, June 1, 2024
1 change · saas-17.2
Resolved issues and error corrections
Sales orders in multi-company setups now show a clear validation message when the company is removed instead of causing a system error. This helps users understand what needs to be fixed and prevents confusing traceback screens during order entry.
Original PR description
Problem: In a multi-company environment, deselecting a company on the sales order throws a traceback error that no company can be found. Purpose: No traceback error should occur. Instead, a ValidationError should display requiring the user to set a company. Steps to Reproduce on Runbot: 1. Install Sales and Invoice 2. Create a sale orders with a company and save. 3. Deselect the company to be empty and try to save 4. Traceback error occurs opw-3915943 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr