mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 04:12:05 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
|
|
@ -0,0 +1,51 @@
|
|||
odoo.define('sale.tour_sale_signature', function (require) {
|
||||
'use strict';
|
||||
|
||||
var tour = require('web_tour.tour');
|
||||
|
||||
// This tour relies on data created on the Python test.
|
||||
tour.register('sale_signature', {
|
||||
test: true,
|
||||
url: '/my/quotes',
|
||||
},
|
||||
[
|
||||
{
|
||||
content: "open the test SO",
|
||||
trigger: 'a:containsExact("test SO")',
|
||||
},
|
||||
{
|
||||
content: "click sign",
|
||||
trigger: 'a:contains("Sign")',
|
||||
},
|
||||
{
|
||||
content: "check submit is enabled",
|
||||
trigger: '.o_portal_sign_submit:enabled',
|
||||
run: function () {},
|
||||
},
|
||||
{
|
||||
content: "click select style",
|
||||
trigger: '.o_web_sign_auto_select_style a',
|
||||
},
|
||||
{
|
||||
content: "click style 4",
|
||||
trigger: '.o_web_sign_auto_font_selection a:eq(3)',
|
||||
},
|
||||
{
|
||||
content: "click submit",
|
||||
trigger: '.o_portal_sign_submit:enabled',
|
||||
},
|
||||
{
|
||||
content: "check it's confirmed",
|
||||
trigger: '#quote_content:contains("Thank You")',
|
||||
}, {
|
||||
trigger: '#quote_content',
|
||||
run: function () {
|
||||
window.location.href = window.location.origin + '/web';
|
||||
}, // Avoid race condition at the end of the tour by returning to the home page.
|
||||
},
|
||||
{
|
||||
trigger: 'nav',
|
||||
run: function() {},
|
||||
}
|
||||
]);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue