odoo/odoo#154356

Created by fw-bot
Merged at 07cf6c0e320cd719ea5b6531c2c84f55d8627722

Statuses:

label
odoo-dev:saas-16.4-15.0-opw-3677713-no_salesperson_from_bill_autocomplete-pta-d3H0-fw
head
5038280854b4c9cdbb296e48cfc17c5ae1c18b42
merged
2 years ago by Bugfix, Anh Thao Pham (pta)
odoo/odoo
15.0 #151814
saas-15.2 #154226
16.0 #154318
saas-16.1 #154322
saas-16.2 #154326
saas-16.3 #154341
saas-16.4 #154356
17.0 #154669
saas-17.1 #154674
18.0
saas-18.2
saas-18.3
saas-18.4
19.0
saas-19.1
saas-19.2
master #154677

[FW][FIX] purchase: do not populate salesperson of bill from PO

Steps to reproduce:
- Install Accounting and Purchase
- Create a PO with Purchase Representative different from current user (e.g. Marc Demo)

1) - Mark the product as received
- Create a bill from PO

2) - Go to Accounting
- Create a bill
- Select the PO in Auto-Complete field
- Save the bill

Issue:
The Purchase Representative of the PO is set as Salesperson (hidden field) of the bill.
He should not.
In the second case, by adding the purchase representative as Salesperson of the bill, he is also added as a follower of the bill and he receives a notification about being assigned to the bill.

opw-3677713


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #154226
Forward-Port-Of: #151814