diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-06-11 11:33:07 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-06-11 11:33:07 +0200 |
| commit | 9a60bafd7f2ae33c76cc4e93c4bceea44ecb5d48 (patch) | |
| tree | b3ec833a9bcb68a62aca5badf9d9cfa731382ede /addons/mail/mail_thread.py | |
| parent | 53315288a87fce960f4261222ef125e5793b5a8a (diff) | |
| parent | e5379bc1a050883452fae1e71093467042e9b64d (diff) | |
Merge pull request #464 from odoo-dev/master-task-reviewer-tde
[IMP] project: task: added reviewer_id field, linking towards a res.users, that is the reviewer of the task.
Diffstat (limited to 'addons/mail/mail_thread.py')
| -rw-r--r-- | addons/mail/mail_thread.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 55a566880b8..dc2b98fdc93 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -1699,7 +1699,7 @@ class mail_thread(osv.AbstractModel): ], context=context) return fol_obj.unlink(cr, SUPERUSER_ID, fol_ids, context=context) - def _message_get_auto_subscribe_fields(self, cr, uid, updated_fields, auto_follow_fields=['user_id'], context=None): + def _message_get_auto_subscribe_fields(self, cr, uid, updated_fields, auto_follow_fields=None, context=None): """ Returns the list of relational fields linking to res.users that should trigger an auto subscribe. The default list checks for the fields - called 'user_id' @@ -1710,6 +1710,8 @@ class mail_thread(osv.AbstractModel): Override this method if a custom behavior is needed about fields that automatically subscribe users. """ + if auto_follow_fields is None: + auto_follow_fields = ['user_id'] user_field_lst = [] for name, column_info in self._all_columns.items(): if name in auto_follow_fields and name in updated_fields and getattr(column_info.column, 'track_visibility', False) and column_info.column._obj == 'res.users': |
