[FIX] account_reconcile_analytic_tag: Add kwargs on _get_reconcile_line

This commit is contained in:
Enric Tobella
2025-01-03 13:05:30 +01:00
parent c1a7bf7249
commit 9ec53e169d

View File

@@ -6,15 +6,7 @@ from odoo import models
class AccountReconcileAbstract(models.AbstractModel):
_inherit = "account.reconcile.abstract"
def _get_reconcile_line(
self, line, kind, is_counterpart=False, max_amount=False, from_unreconcile=False
):
vals = super()._get_reconcile_line(
line=line,
kind=kind,
is_counterpart=is_counterpart,
max_amount=max_amount,
from_unreconcile=from_unreconcile,
)
def _get_reconcile_line(self, line, kind, **kwargs):
vals = super()._get_reconcile_line(line, kind, **kwargs)
vals[0]["manual_analytic_tag_ids"] = [(6, 0, line.analytic_tag_ids.ids)]
return vals