odoo/odoo#159604

Created by fw-bot
label
odoo-dev:master-17.0-fix-analytic-distribution-multi-ids-asm-4fcn-fw
head
21b9324fe8b73e6f2e3ba55de8aa6b90dc91ae44
target
master
merged
1 month ago by Mohammed Assellalou (asm)
forward-port of
odoo/odoo#156866

[FW][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

Forward-Port-Of: odoo/odoo#157712
Forward-Port-Of: odoo/odoo#156866