Skip to content

Commit

Permalink
Various bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Feb 29, 2024
1 parent fcbfcf5 commit bb94cbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions account_reconcile_compassion/models/bank_statement_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _get_invoice_line_data(self, mv_line_dict):
# it is only useful in the invoice journal item
analytic = mv_line_dict.pop("analytic_account_id", False)
if analytic:
invl_vals["account_analytic_id"] = analytic
invl_vals["analytic_account_id"] = analytic

# Find sponsorship
sponsorship_id = mv_line_dict.pop("sponsorship_id")
Expand All @@ -243,9 +243,9 @@ def _get_invoice_line_data(self, mv_line_dict):
default_analytic = self.env["account.analytic.default"].account_get(
product.id, self.partner_id.id
)
analytic = invl_vals.get("account_analytic_id")
analytic = invl_vals.get("analytic_account_id")
if not analytic and default_analytic:
invl_vals["account_analytic_id"] = default_analytic.analytic_id.id
invl_vals["analytic_account_id"] = default_analytic.analytic_id.id

return invl_vals

Expand Down

0 comments on commit bb94cbc

Please sign in to comment.