diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-05-25 09:29:25 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-05-26 12:52:11 +0000 |
| commit | 25ff38eb429d282ee6f7ed12458745052014012a (patch) | |
| tree | 0870a2d038882f7c12ea22fb7f27326fff82c31b /odoo/addons/base/data/base_data.sql | |
| parent | cba03871a379153d57419ea560ba259560bf0e1b (diff) | |
[FIX] purchase_stock: PO follower
- Create a dropship product
- Set a supplier
- As a portal user, buy the product on the eCommerce
The portal user is added as a follower of the PO created.
This is a side-effect of `sudo` keeping the current user and the
following adding the current usr as a follower:
https://github.com/odoo/odoo/blob/96b0dcf9e51f5a924e2cbf618c2ee5462cc1f03f/addons/mail/models/mail_thread.py#L262
When the PO is created from a procurement, the current user might not
have access to the Purchase app. For example, the user might only have
access to Sales. Therefore, there is no need of adding him as follower.
opw-2249357
closes odoo/odoo#51895
X-original-commit: a561ad050e0c8cfe1dafb699c4c84c7c39bf777d
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'odoo/addons/base/data/base_data.sql')
0 files changed, 0 insertions, 0 deletions
