[ADD]: Add tips for users

bzr revid: atp@tinyerp.com-20120924180949-dtnqnsowrw2hogcv
This commit is contained in:
Atul Patel (OpenERP) 2012-09-24 23:39:49 +05:30
parent 4199e2bfbb
commit bd4802fd6e
5 changed files with 10 additions and 2 deletions

View File

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

View File

@ -44,6 +44,7 @@
<field name="department_id" on_change="onchange_department_id(department_id)"/>
<field name="job_id" options='{"no_open": true}' domain="[('state','!=','old')]" context="{'form_view_ref': 'hr.view_hr_job_employee_form'}"/>
<field name="parent_id"/>
<span style='color: gray' colspan="2">As Manager of this employee, you will automatically follow all human resource request of this employee</span>
<field name="coach_id"/>
</group>
<group>

View File

@ -23,9 +23,11 @@ openerp_mail_followers = function(session, mail) {
template: 'mail.followers',
init: function() {
this._super.apply(this, arguments);
this.options.image = this.node.attrs.image || 'image_small';
this.options.title = this.node.attrs.title || 'Followers';
this.options.context = this.node.attrs.context;
this.ds_model = new session.web.DataSetSearch(this, this.view.model);
this.ds_follow = new session.web.DataSetSearch(this, this.field.relation);
},

View File

@ -12,6 +12,11 @@
<button type="button" class="oe_mail_button_unfollow oe_mail_button_mouseout">Following</button>
</div>
<div class="oe_mail_recthread_followers">
<span style="color:gray">
<t t-if='widget.options.context'>
<h5><t t-raw="widget.options.context['followers_help']"/></h5>
</t>
</span>
<t t-if="widget.options.title">
<h4><t t-raw="widget.options.title"/></h4>
</t>

View File

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