From d87ab049e2cc167a893036351b64210696e5c8f9 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 24 Jan 2017 16:55:51 +0100 Subject: [PATCH] [FIX] mail: require res_model_id on followers The flag has been forgotten with 94d2b97da4af28c551d246f14347f7674c4d50f5 --- addons/mail/models/mail_followers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/models/mail_followers.py b/addons/mail/models/mail_followers.py index c10cb090ecb..bbdc0a63bcc 100644 --- a/addons/mail/models/mail_followers.py +++ b/addons/mail/models/mail_followers.py @@ -20,7 +20,7 @@ class Followers(models.Model): res_model_id = fields.Many2one( 'ir.model', 'Related Document Model', - index=True, ondelete='cascade', + index=True, required=True, ondelete='cascade', help='Model of the followed resource') res_model = fields.Char( 'Related Document Model Name', index=True, readonly=True, related='res_model_id.model', store=True)