Skip to content

Commit

Permalink
[FIX] account_invoice_name_short: don't apply group_by in ref/payment…
Browse files Browse the repository at this point in the history
…_ref
  • Loading branch information
MiquelRForgeFlow authored and deeniiz committed Feb 7, 2025
1 parent 71feef8 commit c6e0af9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions account_invoice_name_short/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,10 @@ def shorten_long_vals(vals):
vals_new = {}
if vals:
if "ref" in vals and vals["ref"]:
vals_new["ref"] = shorten_long_string(
shorten_long_delimited_string(vals["ref"].strip())
)
vals_new["ref"] = shorten_long_string(vals["ref"].strip())
if "payment_reference" in vals and vals["payment_reference"]:
vals_new["payment_reference"] = shorten_long_string(
shorten_long_delimited_string(vals["payment_reference"].strip())
vals["payment_reference"].strip()
)
if "invoice_origin" in vals and vals["invoice_origin"]:
vals_new["invoice_origin"] = shorten_long_delimited_string(
Expand Down

0 comments on commit c6e0af9

Please sign in to comment.