[FIX] mail: require res_model_id on followers

The flag has been forgotten with 94d2b97da4
This commit is contained in:
Christophe Simonis
2017-01-24 16:55:51 +01:00
parent 6c4389df41
commit d87ab049e2
+1 -1
View File
@@ -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)