[FIX]: Add help instead of follow_help key

bzr revid: atp@tinyerp.com-20120926175659-7x7r0zpek55jqaeq
This commit is contained in:
Atul Patel (OpenERP) 2012-09-26 23:26:59 +05:30
parent feec62da0b
commit 97fdf97be2
4 changed files with 5 additions and 4 deletions

View File

@ -117,7 +117,7 @@
</notebook> </notebook>
<div class="oe_chatter"> <div class="oe_chatter">
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
<field name="message_follower_ids" widget="mail_followers" context="{'followers_help': 'The User will automatically follow record created under this Sales team'}"/> <field name="message_follower_ids" widget="mail_followers" help="The User will automatically follow record created under this Sales team"/>
</div> </div>
</form> </form>
</field> </field>

View File

@ -28,6 +28,7 @@ openerp_mail_followers = function(session, mail) {
this.options.image = this.node.attrs.image || 'image_small'; this.options.image = this.node.attrs.image || 'image_small';
this.options.title = this.node.attrs.title || 'Followers'; this.options.title = this.node.attrs.title || 'Followers';
this.options.context = this.node.attrs.context; this.options.context = this.node.attrs.context;
this.options.comment = this.node.attrs.help || false;
this.ds_model = new session.web.DataSetSearch(this, this.view.model); this.ds_model = new session.web.DataSetSearch(this, this.view.model);
this.ds_follow = new session.web.DataSetSearch(this, this.field.relation); this.ds_follow = new session.web.DataSetSearch(this, this.field.relation);
}, },

View File

@ -12,8 +12,8 @@
<button type="button" class="oe_mail_button_unfollow oe_mail_button_mouseout">Following</button> <button type="button" class="oe_mail_button_unfollow oe_mail_button_mouseout">Following</button>
</div> </div>
<div class="oe_grey"> <div class="oe_grey">
<t t-if='widget.options.context'> <t t-if="widget.options.comment">
<h5><t t-raw="widget.options.context['followers_help']"/></h5> <h5><t t-raw="widget.options.comment"/></h5>
</t> </t>
</div> </div>
<div class="oe_mail_recthread_followers"> <div class="oe_mail_recthread_followers">

View File

@ -153,7 +153,7 @@
</sheet> </sheet>
<div class="oe_chatter"> <div class="oe_chatter">
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
<field name="message_follower_ids" widget="mail_followers" context="{'followers_help': 'The User will automatically follow record created under this project'}"/> <field name="message_follower_ids" widget="mail_followers" help ="The User will automatically follow record created under this project"/>
</div> </div>
</form> </form>
</field> </field>