Files
odoo_source/addons/account/models
Bohdan Lisnenko d9215a766a [FIX] account: recreate analytic lines on account change
Steps to reproduce:
1. Login to Odoo 16.
2. Install Accounting app, apply Generic CoA, enable Analytic Accounting.
3. Create Analytic Plan with list of accounts. Departments for instance.
4. Create Invoice with any product, set financial account to 400000 Product Sales, and specify analytic account.
5. Post the Invoice.
6. Go to Accounitng -> Analytic Items. It should contian Analytic Item with financial account 400000 Product Sales.
7. Go to accounting -> Journal Items, find Journal Item related to our invoice where product and analytics were defined.
8. Mark journal item with checkbox to enable multi edit feature. Change financial account to 450000 Other Income.

Current behavior:
Analytic Item still has financial account 400000 Product Sales.

Expected behavior:
Analytic Item should be updated with financial account 450000 Other Income.

closes odoo/odoo#113940

X-original-commit: d0fdc38385f5f259da259d21e9137494e6d7c17d
Signed-off-by: William André (wan) <wan@odoo.com>
2023-03-01 11:07:50 +01:00
..