Thursday, June 8, 2017
1 change · master
Enhancements to existing features
When a customer is changed on a sales order, the salesperson and sales team now update to match that customer. This prevents old salesperson or team values from remaining on the order when the selected customer has no assigned salesperson or team.
Original PR description
Description of the issue/feature this PR addresses: - Task : https://www.odoo.com/web#id=33390&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720 - Pad :…
Description of the issue/feature this PR addresses: - Task : https://www.odoo.com/web#id=33390&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720 - Pad : https://pad.odoo.com/p/r.450472f96acd8c7f151ae94f7529133f Current behavior before PR: - Sales Person is set on Partner (which belongs to some sales team) , while creating SO and choosing that partner fills these fields accordingly but if the field Sales Person is not set (empty) , then on creation of SO user selects the partner it retains the previous value (old one) , which should not be the case. Desired behavior after PR is merged: Set Salesperson and sales team fields in SO based on partner - If Partner have sales person => on change of partner in SO set that sales person in SO and based on sales person change sales team - If parner haven't any sales person => On change of partner in SO set blank in sales person(If already set or not) and based on that blank sales team also. - If partner have sales person (but sales person not related to any sales team) => on change of partner set sales person and blank sales team -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr