[FIX] intrastat_product: error on Transaction Type name computation

This commit is contained in:
Daniel Reis
2024-09-12 08:18:49 +01:00
parent bd2eedc6ea
commit 81ebf571e4

View File

@@ -30,7 +30,7 @@ class IntrastatTransaction(models.Model):
@api.depends("code", "description")
def _compute_display_name(self):
for this in self:
name = this.code
name = this.code or ""
if this.description:
name += " " + this.description
name = shorten(name, 55)