odoo/odoo#154326

Created by fw-bot
Merged at e9d03dac22794c7cc2c2bf26d13c3ca82f362488

Statuses:

label
odoo-dev:saas-16.2-15.0-opw-3677713-no_salesperson_from_bill_autocomplete-pta-x63c-fw
head
8cc6365a34da61108ff0b7a645000397f0720c35
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