[imp] mail_digest: related state is readonly

pull/228/head
Simone Orsi 2018-01-12 15:35:48 +01:00 committed by Holger Brunn
parent 1d785b42f4
commit 4d21acd232
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class MailDigest(models.Model):
'Mail',
ondelete='set null',
)
state = fields.Selection(related='mail_id.state')
state = fields.Selection(related='mail_id.state', readonly=True)
template_id = fields.Many2one(
'ir.ui.view',
'Qweb mail template',