Added store and index to related company_id field

This commit is contained in:
Iván Todorovich 2018-09-15 13:38:12 -03:00
parent ad2d1e1548
commit bf9b08ff1e

View File

@ -24,6 +24,8 @@ class DocumentPageHistory(models.Model):
'Company', 'Company',
help='If set, page is accessible only from this company', help='If set, page is accessible only from this company',
related='page_id.company_id', related='page_id.company_id',
store=True,
index=True,
readonly=True, readonly=True,
) )