[FIX] mrp: Update analytic lines when changing account on MO
Upon changing/removing/adding the analytic account on a manufacturing order, only the analytic lines due to the raw material moves are updated, but not the ones for workcenter costs. To reproduce: - Create an MO with a workorder on a workcenter which has an operating cost set - Complete time on this workorder to generate the [WC] AALs on this MO - Change the analytic account on the MO (or delete it) Bug: The [WC] AALs never get correctly updated. This fix builds on https://github.com/odoo/odoo/pull/79614 to correct this behaviour and also take into account changes for the workcenter cost AALs when the analytic_account of a manufacturing order is changed. Community PR: https://github.com/odoo/odoo/pull/117308 closes odoo/odoo#117308 Task: 3252742 Signed-off-by:Arnold Moyaux (arm) <arm@odoo.com>
Loading