summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/services
diff options
context:
space:
mode:
authorNicolas Galler <ngl@odoo.com>2020-11-09 09:54:41 +0000
committerNicolas Galler <ngl@odoo.com>2020-11-16 16:06:53 +0000
commit7683e1907f6eb1fde4626927957df4eede49b8ca (patch)
treed273d6bdb6b18e98edb26dcafe1097ebbfd5af74 /addons/web/static/src/js/services
parentc5059aa151430eebd62e9f000fe43e87bdd89ff3 (diff)
[FIX] sale, sales_team: fallback to partner's team
Behavior prior to the commit: - when setting the customer (partner) on a sales order, the sales team is set based on the partner's sales person. If there is no sales person on the partner then the team defaults to the first team in sequence for the company. - the team set on the partner is not used (by default, this field is not visible, but it can be set from server action or added via studio). In Odoo 12.0 the team set on the partner was used as a fallback, but this was removed in commit 242be00429a9 Behavior after the commit: - the partner's team is used as fallback when the partner is updated - when the salesperson is updated on the quote, we also use the current team as fallback (since presumably this was set either from the partner, or using the existing default rule, there is no reason to change it) - in debug mode, the field `team_id` is shown on the partner view (under the `Sales & Purchases` tab) Note: - Change in existing installation is expected to be minimal since it only affects the customers who are making use of the partner.team_id field, not populated or displayed by default, but there is a risk for a customer who: 1. has that field populated on existing partners (maybe upgraded from an old install where it was displayed?) 2. is relying on the new (as of v13.0) behavior of assigning the default sales team based on the sequence opw-2351868 closes odoo/odoo#61794 X-original-commit: 41d00e0635b5ba6e9bbcd44a1e1828cfc8c35bc5 Signed-off-by: Nicolas Galler <ngaller@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/services')
0 files changed, 0 insertions, 0 deletions