odoo/enterprise#78204

Created by Sales, Victor Feyens (vfe)
Closed
label
odoo-dev:saas-18.1-web-sale-fix-so-team-update-vfe
head
38509070b171b8e1625f21b4e3b94e032b00bf05
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_subscription: team not updated on salesman change

Since odoo/odoo@27bf2e55810b200563ed6b93b1e22dfda65cf4ea, salesman and salesteam are not assigned on ecommerce orders until the order is confirmed, to avoid useless notifications.

Nevertheless, this disabled the salesteam recomputation on confirmed ecommerce orders when the salesman is modified.

This became an issue for long-lived orders like subscription orders, where the salesman can change, and the team should be updated accordingly.

This commit makes sure the salesteam is correctly recomputed when the salesman is modified on a subscription order.