Saturday, February 15, 2025
1 change · saas-18.1
Resolved issues and error corrections
Ecommerce orders now keep the correct sales team when the assigned salesperson is changed manually. This matters for cases like subscriptions, where teams need to stay accurate for ownership, reporting, and follow-up while preserving the website's default sales team behavior.
Original PR description
Recent commit 27bf2e55810b200563ed6b93b1e22dfda65cf4ea modified the salesperson assignation on ecommerce orders, to avoid assigning any salesperson until the order confirmation. Nevertheless, this commit also disabled the salesteam recomputation on salesman change for ecommerce orders. In some cases (subscription orders), the salesperson might be manually changed on the order and we still want the right salesteam to be assigned on the order, even if it came from the ecommerce. This commit adds a hook to allow subscription orders to keep the salesteam recomputation on salesman change for ecommerce orders. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr