diff options
| author | Thibault Delavallée <tde@openerp.com> | 2012-09-04 15:36:48 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2012-09-04 15:36:48 +0200 |
| commit | fd2a4139694e2548a6bccb154a6a6c5be6d19b5e (patch) | |
| tree | 8c7a24d99410cf49baff4600def1964df99c0f07 /addons/mail/mail_group_view.xml | |
| parent | d6ddb23a4ede1f4405b735f501f599d0c0c33021 (diff) | |
[FIX] [CLEAN] mail_thread: misc cleanup (comments, vars, typo). Fixed subscriber API. It now handles a read_back key in context to return the new value of the field. The purpose is to use it in mail_followers widget, that behaves asynchronously compared to the form_view, and that need updated values after subscribing a user. Updated mail_followers widget, cleaned its code. Updated mail_group with wrappers on message_subscriber_users, because it was setting user_ids as context.
bzr revid: tde@openerp.com-20120904133648-plsziijac64lw4de
Diffstat (limited to 'addons/mail/mail_group_view.xml')
| -rw-r--r-- | addons/mail/mail_group_view.xml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/mail/mail_group_view.xml b/addons/mail/mail_group_view.xml index acd9f320757..51a7a926dc9 100644 --- a/addons/mail/mail_group_view.xml +++ b/addons/mail/mail_group_view.xml @@ -33,8 +33,8 @@ <h4><a type="open"><field name="name"/></a></h4> <ul> <li><t t-raw="record.message_summary.raw_value"/></li> - <li t-if="! record.message_is_follower.raw_value"><a name="message_subscribe_users" string="Join" type="object" class="oe_group_join">Not following</a></li> - <li t-if="record.message_is_follower.raw_value"><a name="message_unsubscribe_users" string="Leave" type="object" class="oe_group_leave">Following</a></li> + <li t-if="! record.message_is_follower.raw_value"><a name="action_follow" string="Join" type="object" class="oe_group_join">Not following</a></li> + <li t-if="record.message_is_follower.raw_value"><a name="action_unfollow" string="Leave" type="object" class="oe_group_leave">Following</a></li> </ul> </div> </div> @@ -81,7 +81,6 @@ </group> </sheet> <div class="oe_chatter"> - <field name="message_is_follower" invisible="1"/> <field name="message_ids" widget="mail_thread" options='{"thread_level": 1}'/> <field name="message_follower_ids" widget="mail_followers"/> |
