Analytic distributions that contain mandatory plans should be blocked from posting. However, automatic flows (for example subscription invoices) should not be blocked. For this reason, the context is used to determine whether the distribution should be validated. closes odoo/odoo#102720 X-original-commit: 7b11af76598c0782ac2097d3cbeb718962be2537 Signed-off-by: William André (wan) <wan@odoo.com>