diff --git a/account_analytic_wip/models/account_analytic_tracking.py b/account_analytic_wip/models/account_analytic_tracking.py index be76f86174..85db02af40 100644 --- a/account_analytic_wip/models/account_analytic_tracking.py +++ b/account_analytic_wip/models/account_analytic_tracking.py @@ -184,7 +184,7 @@ def _prepare_account_move_line(self, account, amount): "product_uom_id": self.product_id.uom_id.id, "debit": amount if amount > 0.0 else 0.0, "credit": -amount if amount < 0.0 else 0.0, - "account_id": self.analytic_id.id, + "account_id": account.id, } def _get_accounting_data_for_valuation(self):