odoo/odoo#195810

Created by Sales, Victor Feyens (vfe)
Merged at 45b303cb3d426a168f70279a7601da0b7e21ade4

Statuses:

label
odoo-dev:saas-18.1-web-sale-fix-so-team-update-vfe
head
5a7e041b9e80e628adb92290b4606c36f4e74c65
merged
8 months ago by Sales, Victor Feyens (vfe)
odoo/odoo odoo/enterprise
saas-18.1 #195810 #78204
saas-18.2 #197969
saas-18.3
saas-18.4
19.0
master #197852

[FIX] website_sale: sales team not updated on partner change

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