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:
Guewen Baconnier
2015-05-15 11:46:46 +02:00
committed by Pedro M. Baeza
parent 91b062e5cc
commit aa9074d62f

View File

@@ -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 "