Skip to content

Commit

Permalink
Merge PR #1100 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by dhongu
  • Loading branch information
OCA-git-bot committed Oct 22, 2024
2 parents fd6ed97 + de3292c commit 975729b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions l10n_ro_account_edi_ubl/models/account_edi_xml_cius_ro.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ def _get_invoice_line_vals(self, line, taxes_vals):

def _get_invoice_line_item_vals(self, line, taxes_vals):
vals = super()._get_invoice_line_item_vals(line, taxes_vals)
vals["description"] = vals["description"][:200]
vals["name"] = vals["name"][:100]
name = vals.get("name") or "n/a"
vals["name"] = name[:100]
description = vals.get("description") or vals["name"]
vals["description"] = description[:200]
if vals["classified_tax_category_vals"]:
if vals["classified_tax_category_vals"][0]["tax_category_code"] in (
"AE",
Expand Down

0 comments on commit 975729b

Please sign in to comment.