Merge lp:~camptocamp/openobject-addons/trunk-fix_mail_auto_subscribe-1188538 into lp:openobject-addons

Proposed by Guewen Baconnier @ Camptocamp
Status: Rejected
Rejected by: Martin Trigaux (OpenERP)
Proposed branch: lp:~camptocamp/openobject-addons/trunk-fix_mail_auto_subscribe-1188538
Merge into: lp:openobject-addons
Diff against target: 19 lines (+1/-2)
1 file modified
mail/mail_thread.py (+1/-2)
To merge this branch: bzr merge lp:~camptocamp/openobject-addons/trunk-fix_mail_auto_subscribe-1188538
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+167938@code.launchpad.net

Commit message

[FIX] automatically subscribe users from fields even if the field has no 'track_visibility' defined.

This condition prevented to register new fields given in the 'auto_follow_fields' arguments if they had no 'track_visibility', which is unrelated to the automatic subscription

Description of the change

To post a comment you must log in.
Revision history for this message
Martin Trigaux (OpenERP) (mat-openerp) wrote :

As mentioned on the bug report, not the behaviour we would like to have.
I reject this merge proposal then

Regards

Unmerged revisions

8755. By Guewen Baconnier @ Camptocamp

[FIX] automatically subscribe users from fields even if the field has no 'track_visibility' defined.

This condition prevented to register new fields given in the 'auto_follow_fields' arguments if they had no 'track_visibility', which is unrelated to the automatic subscription

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'mail/mail_thread.py'
--- mail/mail_thread.py 2013-06-05 09:04:53 +0000
+++ mail/mail_thread.py 2013-06-07 09:42:28 +0000
@@ -1342,7 +1342,6 @@
1342 trigger an auto subscribe. The default list checks for the fields1342 trigger an auto subscribe. The default list checks for the fields
1343 - called 'user_id'1343 - called 'user_id'
1344 - linking to res.users1344 - linking to res.users
1345 - with track_visibility set
1346 In OpenERP V7, this is sufficent for all major addon such as opportunity,1345 In OpenERP V7, this is sufficent for all major addon such as opportunity,
1347 project, issue, recruitment, sale.1346 project, issue, recruitment, sale.
1348 Override this method if a custom behavior is needed about fields1347 Override this method if a custom behavior is needed about fields
@@ -1350,7 +1349,7 @@
1350 """1349 """
1351 user_field_lst = []1350 user_field_lst = []
1352 for name, column_info in self._all_columns.items():1351 for name, column_info in self._all_columns.items():
1353 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':1352 if name in auto_follow_fields and name in updated_fields and column_info.column._obj == 'res.users':
1354 user_field_lst.append(name)1353 user_field_lst.append(name)
1355 return user_field_lst1354 return user_field_lst
13561355

Subscribers

People subscribed via source and target branches

to all changes: