diff --git a/mail_archives/__openerp__.py b/mail_archives/__openerp__.py
index 461da77..57c4508 100644
--- a/mail_archives/__openerp__.py
+++ b/mail_archives/__openerp__.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
{
- "name": "mail_archives",
+ "name": "Mail archives",
"summary": """Adds menu to find old messages""",
"category": "Discuss",
"images": [],
diff --git a/mail_archives/tests/test_js.py b/mail_archives/tests/test_js.py
index 645e971..709cc28 100644
--- a/mail_archives/tests/test_js.py
+++ b/mail_archives/tests/test_js.py
@@ -12,4 +12,4 @@ class TestUi(openerp.tests.HttpCase):
}, 1000);
"""
link = '/web#action=%s' % self.ref('mail.mail_channel_action_client_chat')
- self.phantom_js(link, code, "odoo.__DEBUG__.services['mail_archives.archives']", login="demo")
+ self.phantom_js(link, code, "odoo.__DEBUG__.services['mail_archives.archives']", login="admin")
diff --git a/res_partner_mails_count/__openerp__.py b/res_partner_mails_count/__openerp__.py
index aadb5ca..5d39403 100644
--- a/res_partner_mails_count/__openerp__.py
+++ b/res_partner_mails_count/__openerp__.py
@@ -13,7 +13,7 @@
"currency": "EUR",
"depends": [
- 'mail_archives'
+ 'mail_archives',
'web_tour_extra' ,
],
"external_dependencies": {"python": [], "bin": []},
diff --git a/res_partner_mails_count/static/description/1.png b/res_partner_mails_count/static/description/1.png
index 7ce0c13..c78a784 100644
Binary files a/res_partner_mails_count/static/description/1.png and b/res_partner_mails_count/static/description/1.png differ
diff --git a/res_partner_mails_count/static/description/2.png b/res_partner_mails_count/static/description/2.png
index c335c0d..11d3394 100644
Binary files a/res_partner_mails_count/static/description/2.png and b/res_partner_mails_count/static/description/2.png differ
diff --git a/res_partner_mails_count/static/description/3.png b/res_partner_mails_count/static/description/3.png
index 9492b47..82130f2 100644
Binary files a/res_partner_mails_count/static/description/3.png and b/res_partner_mails_count/static/description/3.png differ
diff --git a/res_partner_mails_count/static/src/js/res_partner_mails_count_tour.js b/res_partner_mails_count/static/src/js/res_partner_mails_count_tour.js
index b64e84b..b4a8945 100644
--- a/res_partner_mails_count/static/src/js/res_partner_mails_count_tour.js
+++ b/res_partner_mails_count/static/src/js/res_partner_mails_count_tour.js
@@ -1,14 +1,14 @@
-(function () {
+odoo.define('res_partner_mails_count.res_partner_mails_count_tour', function (require) {
'use strict';
+ var Core = require('web.core');
+ var Tour = require('web.Tour');
+ var _t = Core._t;
- var _t = openerp._t;
-
- openerp.Tour.register({
+ Tour.register({
id: 'mails_count_tour',
name: _t("Mails count Tour"),
mode: 'test',
- path: '/web?res_partner_mails_count=tutorial#id=3&view_type=form&model=res.partner',
- // mode: 'tutorial',
+ path: '/web?&res_partner_mails_count=tutorial#id=3&view_type=form&model=res.partner',
steps: [
{
title: _t("Mails count tutorial"),
@@ -19,28 +19,17 @@
title: _t("New fields"),
content: _t("Here is new fields with mails counters. Press one of it."),
element: '.mails_to',
+ waitFor: '.mails_to:visible',
},
{
- waitNot: '.mails_to:visible',
- title: _t("Send message from here"),
- placement: 'left',
- content: _t("Now you can see corresponding mails. You can send mail to this partner right from here. Press 'Send a mesage'."),
- element: '.oe_mail_wall .oe_msg.oe_msg_composer_compact>div>.oe_compose_post',
- },
- {
- title: "New message",
- placement: 'left',
- content: _t("You can type message here."),
- element: 'div.oe_msg_content>textarea.field_text',
- },
- {
- wait: '7000',
- title: "That's it",
+ wait: '2000',
+ waitFor: '.o_channel_name.mail_archives:visible',
+ title: _t("That's it"),
content: _t("Enjoy your day!
IT-Projects LLC team "),
popover: { next: _t("Close Tutorial") },
},
]
});
-}());
+});
diff --git a/res_partner_mails_count/templates.xml b/res_partner_mails_count/templates.xml
index 7cb5bc1..f17a0d2 100644
--- a/res_partner_mails_count/templates.xml
+++ b/res_partner_mails_count/templates.xml
@@ -1,6 +1,13 @@
+
+
+
+
+
res.partner.mails.count
res.partner
@@ -23,6 +30,8 @@
+
+
res_partner_mails_count Tutorial
diff --git a/res_partner_mails_count/tests/test_phantom.py b/res_partner_mails_count/tests/test_phantom.py
index 515d55b..4790eae 100644
--- a/res_partner_mails_count/tests/test_phantom.py
+++ b/res_partner_mails_count/tests/test_phantom.py
@@ -4,7 +4,8 @@ import openerp.tests
@openerp.tests.common.post_install(True)
class TestUi(openerp.tests.HttpCase):
def test_01_res_partner_mails_to_count(self):
- self.phantom_js('/', "openerp.Tour.run('mails_count_tour', 'test')", "openerp.Tour.tours.mails_count_tour", login="admin")
+ # self.phantom_js('/', "openerp.Tour.run('mails_count_tour', 'test')", "openerp.Tour.tours.mails_count_tour", login="admin")
+ self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('mails_count_tour', 'test')","odoo.__DEBUG__.services['web.Tour'].tours.mails_count_tour", login="admin")
def test_02_res_partner_mails_from_count(self):
# wait till page loaded and then click and wait again
@@ -15,4 +16,4 @@ class TestUi(openerp.tests.HttpCase):
}, 3000);
"""
link = '/web#id=3&view_type=form&model=res.partner'
- self.phantom_js(link, code, "openerp.Tour.tours.mails_count_tour", login="admin")
+ self.phantom_js(link, code, "odoo.__DEBUG__.services['web.Tour'].tours.mails_count_tour", login="admin")