odoo/odoo#156866

Created by Mohammed Assellalou (asm)
label
odoo-dev:17.0-fix-analytic-distribution-multi-ids-asm
head
0ce64648b39b9a742706ae0afb445bb123fbe0ff
target
17.0
merged
2 months ago by Accounting, Florian Gilbert (flg)
forward-ports

[IMP] analytic: Add a function to get the analytic accounts

[IMP] analytic: Add a function to get the analytic accounts off of analytic_distribution dict, this improvement is to avoid rewriting the same code all over whenever we wanna get the accounts.
[related PR](https://github.com/odoo/enterprise/pull/57159)

opw-3756270