Files
odoo_source/addons/analytic/tests
Andrea Grazioso (agr-odoo) 60f053ba42 [FIX] analytic: check current company applicability
Have company A and company B
With company B:
- Create an analytic plan with default applicability 'Mandatory'
- Add an applicability: domain 'Expense', applicability 'Mandatory'
With company A:
- Open the same analytic plan
- Set default applicability 'Optional', no assigned applicability
- Add an analytc account for the plan
- Create an expense, add amount
- Create report > Submit to Mananger > Approve

Issue: Action will be blocked by Warning message
"One or more lines require a 100% analytic distribution."

This occurs because the system checks all applicabilities of the plan
without taking into account the company

opw-3709374

closes odoo/odoo#155195

Signed-off-by: William André (wan) <wan@odoo.com>
2024-03-06 16:10:52 +00:00
..