mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
[FIX] intrastat_product: error on Transaction Type name computation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user