From 81ebf571e496b6a8ee5517c1a653f5a30f244a33 Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Thu, 12 Sep 2024 08:18:49 +0100 Subject: [PATCH] [FIX] intrastat_product: error on Transaction Type name computation --- intrastat_product/models/intrastat_transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intrastat_product/models/intrastat_transaction.py b/intrastat_product/models/intrastat_transaction.py index 8df5b1b..db38585 100644 --- a/intrastat_product/models/intrastat_transaction.py +++ b/intrastat_product/models/intrastat_transaction.py @@ -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)