Skip to content
Snippets Groups Projects
Commit 1b260589 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] account: check company of account on AML


- Create 2 companies C1 and C2, set a COA for both
- Allow the user on both companies in the company switcher
- Create a partner P
- Switch to C2 and an Account Payable and Account Receivable of C1
- In C2, create an invoice for P, add a product, save

The receivable account of C1 is used while the invoice is in C1.

We add the company check on the `account_id` field of the
`account.move.line` to prevent this.

opw-2243441

closes odoo/odoo#50145

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 939bca38
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment