Skip to content

Commit

Permalink
With the new strict ref matching, overriding the partner_ref with the… (
Browse files Browse the repository at this point in the history
#1674)

* With the new strict ref matching, overriding the partner_ref with the product name hinder the reconciliation.

* With the new strict ref matching, overriding the partner_ref with the product name hinder the reconciliation.
  • Loading branch information
davidwul authored Nov 25, 2024
1 parent 1cd6012 commit 0d039ce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sponsorship_switzerland/models/completion_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _generate_invoice(self, stmts_vals, st_line, partner, ref_index):
"payment_mode_id": self.env["account.payment.mode"]
.search([("name", "=", "BVR")])
.id,
"ref": ref,
"payment_reference": ref,
"invoice_origin": stmts_vals["name"],
"invoice_line_ids": [
(0, 0, self._generate_invoice_line(res, product, st_line, partner.id))
Expand Down Expand Up @@ -131,8 +131,6 @@ def _generate_invoice_line(self, res_dict, product, st_line, partner_id):
inv_line_data["analytic_account_id"] = analytic.analytic_id.id
if analytic.analytic_tag_ids:
inv_line_data["analytic_tag_ids"] = [(6, 0, analytic.analytic_tag_ids.ids)]

res_dict["payment_ref"] = product.name
return inv_line_data

def _find_product_id(self, partner_ref, ref):
Expand Down

0 comments on commit 0d039ce

Please sign in to comment.