Skip to content

Commit

Permalink
[FIX] account_reconcile_oca: Fixed analytic distribution update
Browse files Browse the repository at this point in the history
This fixes a bug that occurred when both account_reconcile_oca and account_reconcile_model_oca modules were installed. The issue arose when assigning an analytic account and making no further changes, causing the analytic account to not be set correctly. As a result, the reconciliation process failed to create the analytic entries properly. This line: ensures that if the analytic distribution has changed, it will be correctly updated.
  • Loading branch information
BernatObrador committed Dec 17, 2024
1 parent fa6d728 commit 7704695
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def _check_line_changed(self, line):
self.manual_partner_id and self.manual_partner_id.name_get()[0] or False
)
!= line.get("partner_id")
or self.analytic_distribution != line.get("analytic_distribution", False)
)

def _get_manual_delete_vals(self):
Expand Down

0 comments on commit 7704695

Please sign in to comment.