Browse Source

Merge pull request #10 from yelizariev/8.0-res_partner_mails_count-noupdate

[FIX] don't repeat Tour after updating
pull/17/head
Ivan Yelizariev 9 years ago
parent
commit
14f405104b
  1. 5
      res_partner_mails_count/static/src/js/res_partner_mails_count_tour.js
  2. 4
      res_partner_mails_count/templates.xml

5
res_partner_mails_count/static/src/js/res_partner_mails_count_tour.js

@ -19,13 +19,12 @@
title: _t("New fields"),
content: _t("Here is new fields with mails counters. Press one of it."),
element: '.mails_to',
},
{
waitNot: '.mails_to:visible',
title: _t("Send message from here"),
title: _t("Check messages or send new one"),
placement: 'left',
content: _t("Now you can see corresponding mails. You can send mail to this partner right from here. Press <em>'Send a mesage'</em>."),
content: _t("Click <em>'Send a mesage'</em> to continue the Tour"),
element: '.oe_mail_wall .oe_msg.oe_msg_composer_compact>div>.oe_compose_post',
},
{

4
res_partner_mails_count/templates.xml

@ -48,9 +48,11 @@
</record>
<record id="res_partner_mails_count_tutorial" model="ir.actions.act_url">
<field name="name">res_partner_mails_count Tutorial</field>
<field name="url" eval="'/web?debug=1&amp;res_partner_mails_count=tutorial#id='+str(ref('base.partner_root'))+'&amp;view_type=form&amp;model=res.partner&amp;/#tutorial_extra.mails_count_tour=true'"/>
<field name="url" eval="'/web?res_partner_mails_count=tutorial#id='+str(ref('base.partner_root'))+'&amp;view_type=form&amp;model=res.partner&amp;/#tutorial_extra.mails_count_tour=true'"/>
<field name="target">self</field>
</record>
</data>
<data noupdate="1">
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="res_partner_mails_count_tutorial"/>
<field name="state">open</field>

Loading…
Cancel
Save