diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-10-07 16:22:58 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-10-21 16:51:09 +0000 |
| commit | 31a54b5e859ead7972cdccc956518e14038476ba (patch) | |
| tree | 5af2f43fb2cb8dd0e613e7081a1a685cded9a83e /doc/reference/javascript_reference.rst | |
| parent | 48d4c8185482545b049e2fecf315dd66ab9472f8 (diff) | |
[FIX] stock: routes in multi-company
- Create companies A & B
- Create a Dropship route for B
- Create a product P with route 'Dropship'
- Set the website under company A
- As a portal user, buy the product P on the website
- Do the payment
The SO is confirmed but the Dropship route for B is used despite the
fact that the website is under company A.
This happens because `_search_rule` is called as superuser: therefore,
routes from all companies are retrieved.
To prevent this, we add the company in the domain.
opw-2349094
closes odoo/odoo#60475
X-original-commit: 51b7960f7e30aab471bb846cb890efd95c7b2dcc
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
