No default salesrep_id in PO/SO,Invoice when using 'Change Role'
Description
The system automatically populates the salesrep_id (Sales Rep in SO, Company Agent in PO) with the current user as default value when creating sales orders, purchase orders or invoices. However, it does not populate a default value when using the 'Change Role' function and when logging in again. The salesrep_id remains blank.
Environment
None
Activity
Show:
Michael Powacht March 18, 2021 at 12:34 AM
Thanks to all involved for fixing this bug!
Michael Powacht March 11, 2021 at 10:05 AM
Interesting, thanks a lot Carlos!
Carlos Ruiz March 11, 2021 at 9:56 AM
Indeed, compared the context after login with the context after change role and found the following variables are missing:
The system automatically populates the salesrep_id (Sales Rep in SO, Company Agent in PO) with the current user as default value when creating sales orders, purchase orders or invoices. However, it does not populate a default value when using the 'Change Role' function and when logging in again. The salesrep_id remains blank.