odoo/odoo#154341

Created by fw-bot
Merged at 02bce1bf38f197160582bf15a448f98f7e73de27

Statuses:

label
odoo-dev:saas-16.3-15.0-opw-3677713-no_salesperson_from_bill_autocomplete-pta-dtJ3-fw
head
c2eff57357a30465f5c7f50bd69f82e41fd68f3b
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. The default user (i.e. the current user) should be the Salesperson.
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