mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
display_name must be stored as it is used as _rec_name, otherwise we cant, for instance, import files with name_search
This commit is contained in:
committed by
Pedro M. Baeza
parent
91b062e5cc
commit
aa9074d62f
@@ -47,7 +47,8 @@ class ReportIntrastatCode(models.Model):
|
||||
description = fields.Char(
|
||||
'Description', help="Short text description of the H.S. category")
|
||||
display_name = fields.Char(
|
||||
compute='_compute_display_name', string="Display Name", readonly=True)
|
||||
compute='_compute_display_name', string="Display Name", readonly=True,
|
||||
store=True)
|
||||
intrastat_code = fields.Char(
|
||||
string='European Intrastat Code', size=9, required=True,
|
||||
help="Code used for the Intrastat declaration. Must be part "
|
||||
|
||||
Reference in New Issue
Block a user