diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-01-24 16:55:51 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-01-24 16:55:51 +0100 |
| commit | d87ab049e2cc167a893036351b64210696e5c8f9 (patch) | |
| tree | cc568bb0a2c2455291daaaa3b8e5879b4f859dcb | |
| parent | 6c4389df41fb29f9707b205a8dcca13b3bf8a322 (diff) | |
[FIX] mail: require res_model_id on followers
The flag has been forgotten with 94d2b97da4af28c551d246f14347f7674c4d50f5
| -rw-r--r-- | addons/mail/models/mail_followers.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
