mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
[FIX] product_harmonized_system: Resolve AttributeError in hs_code _compute_display_name
This commit is contained in:
@@ -84,7 +84,7 @@ class HSCode(models.Model):
|
||||
@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)
|
||||
|
||||
Reference in New Issue
Block a user