From c6fe6a5b67e328fe56bc5d4790c04485c2c19a36 Mon Sep 17 00:00:00 2001 From: Andreu Orensanz Date: Fri, 15 Mar 2024 11:09:33 +0100 Subject: [PATCH] [FIX] product_harmonized_system: Resolve AttributeError in hs_code _compute_display_name --- product_harmonized_system/models/hs_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_harmonized_system/models/hs_code.py b/product_harmonized_system/models/hs_code.py index c7b12210..f25afe90 100644 --- a/product_harmonized_system/models/hs_code.py +++ b/product_harmonized_system/models/hs_code.py @@ -84,7 +84,7 @@ def _compute_product_tmpl_count(self): @api.depends("local_code", "description") def _compute_display_name(self): for this in self: - name = this.local_code + name = this.local_code or "" if this.description: name += " " + this.description name = shorten(name, 55)