diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-06-17 12:42:41 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-06-17 16:03:26 +0000 |
| commit | fac71123c576e7d7049c077f016dbf6e7fa49f00 (patch) | |
| tree | 6df8581678ae5c8858178ccabddbf75bf1f5f649 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 56c96e9418310fc2ea33fd598af76226b76a7c9f (diff) | |
[FIX] stock_account: company of anglo-saxon AML
- Create 2 companies A & B
- Create a product with automatic valuation
- Switch to company A
- Create a SO for 1 unit of the product, validate and deliver
- Genrerate the invoice
- Switch to company B, but keep company A allowed
- Post the invoice
An error is raised because of inconsistent company:
> Some records are incompatible with the company...
This occurs because the anglo-saxon lines are created in accounts
belonging to company B instead of company A.
Since the product accounts are property fields, using `force_company` in
the context allows the selection of the right accounts.
opw-2276657
closes odoo/odoo#53183
X-original-commit: 603ce0f408a4479324a0905f5bc569c9f08567dd
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
