diff options
| author | Arnold Moyaux <arm@odoo.com> | 2019-10-01 09:12:16 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-10-07 16:38:18 +0000 |
| commit | 1ac00874a55db900453e7c9b7bbdd5425c08161c (patch) | |
| tree | 865c46fcf700187fd1e530db88e8e17ecdcb97ec /addons/web/static/src/js/fields/basic_fields.js | |
| parent | f2c38d517b0a191c12f5e20ff83905b4a0dd057f (diff) | |
[FIX] stock: manual inter-company flow
Usecase:
- Create a route without company
- Create a push rule for company B from intercompany to stock
- Apply the push rule on product and set in on a product.
- Connect with a user in company A
- Create a move from stock(company A) to intercompany.
- Confirm the move
-> The receipt for company B is not created.
Multiple issues:
- The rule is not found because it belong to the other company and is
filtered by the record rules. -> Aplly the seach as sudo if the move
is going to a location without company.
- Record rule error because a move from intercompany to company B is
created with a user from company A that has no access to company A.
-> Search and read company values and create the move as super user.
Based on work from Simon Lejeune <sle@odoo.com>
closes odoo/odoo#38124
X-original-commit: a80262e8b97256cac4bc5c406bc74a05f7189a00
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
