[ADD]: Add tips for users
bzr revid: atp@tinyerp.com-20120924180949-dtnqnsowrw2hogcv
This commit is contained in:
parent
4199e2bfbb
commit
bd4802fd6e
|
@ -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"/>
|
<field name="message_follower_ids" widget="mail_followers" context="{'followers_help': 'The User will automatically follow record created under this Sales team'}"/>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
<field name="department_id" on_change="onchange_department_id(department_id)"/>
|
<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="job_id" options='{"no_open": true}' domain="[('state','!=','old')]" context="{'form_view_ref': 'hr.view_hr_job_employee_form'}"/>
|
||||||
<field name="parent_id"/>
|
<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"/>
|
<field name="coach_id"/>
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
|
|
|
@ -23,9 +23,11 @@ openerp_mail_followers = function(session, mail) {
|
||||||
template: 'mail.followers',
|
template: 'mail.followers',
|
||||||
|
|
||||||
init: function() {
|
init: function() {
|
||||||
|
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
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.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);
|
||||||
},
|
},
|
||||||
|
|
|
@ -12,6 +12,11 @@
|
||||||
<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_mail_recthread_followers">
|
<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">
|
<t t-if="widget.options.title">
|
||||||
<h4><t t-raw="widget.options.title"/></h4>
|
<h4><t t-raw="widget.options.title"/></h4>
|
||||||
</t>
|
</t>
|
||||||
|
|
|
@ -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"/>
|
<field name="message_follower_ids" widget="mail_followers" context="{'followers_help': 'The User will automatically follow record created under this project'}"/>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
|
|
Loading…
Reference in New Issue