From 7032b60e76a30a062f3e9abd9ddcf2c70791a883 Mon Sep 17 00:00:00 2001 From: ilyasProgrammer Date: Mon, 25 Apr 2016 16:41:37 +0500 Subject: [PATCH] [PORT] noupdate. tests --- mail_archives/tests/test_js.py | 2 +- .../static/src/js/res_partner_mails_count_tour.js | 5 +---- res_partner_mails_count/templates.xml | 2 ++ res_partner_mails_count/tests/test_phantom.py | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) 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/static/src/js/res_partner_mails_count_tour.js b/res_partner_mails_count/static/src/js/res_partner_mails_count_tour.js index 2c166b0..df75c3f 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 @@ -8,10 +8,7 @@ odoo.define('res_partner_mails_count.res_partner_mails_count_tour', function (re 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', - // path: '/web?debug=1&res_partner_mails_count=tutorial#id=3&view_type=form&model=res.partner', - path: '/web', - // mode: 'tutorial', + path: '/web?&res_partner_mails_count=tutorial#id=3&view_type=form&model=res.partner', steps: [ { title: _t("Mails count tutorial"), diff --git a/res_partner_mails_count/templates.xml b/res_partner_mails_count/templates.xml index ae9d0e7..f17a0d2 100644 --- a/res_partner_mails_count/templates.xml +++ b/res_partner_mails_count/templates.xml @@ -30,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 47e980c..4790eae 100644 --- a/res_partner_mails_count/tests/test_phantom.py +++ b/res_partner_mails_count/tests/test_phantom.py @@ -16,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")