From 4d21acd232e988c9f0bd742805a88334d44a28a1 Mon Sep 17 00:00:00 2001 From: Simone Orsi Date: Fri, 12 Jan 2018 15:35:48 +0100 Subject: [PATCH] [imp] mail_digest: related state is readonly --- mail_digest/models/mail_digest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_digest/models/mail_digest.py b/mail_digest/models/mail_digest.py index 83500f9b..f48ebd49 100644 --- a/mail_digest/models/mail_digest.py +++ b/mail_digest/models/mail_digest.py @@ -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',