Skip to Content
Menu
This question has been flagged
1794 Views

Hi, I've created a tour on odoo.. But unfortunately it is not displayed. I've created this way:

in `tour.js`:


    odoo.define('tour.example_tour', function(require) { 

    'use strict'; 

    var core = require('web.core'); 

    var Tour = require('web.Tour'); 

    var _t = core._t; 

    Tour.register({        

    id: 'example_tour', 

    name: 'Complete a basic order trough the Front-End',        

    path: '/web#model=pos.config&action=point_of_sale.action_pos_config_kanban',

    mode: 'test',        

    steps: [{                

    title: 'Load the Session', 

    waitNot: '.oe_loading:visible', 

    element: '.oe_kanban_action_button:contains("New Session")',

     }, ], });

    });



    and in `template.xml`:

    <template id="assets_backend" name="Hyper Tour Assets" inherit_id="web.assets_backend">            

    <xpath expr="." position="inside">                

    <script type="text/javascript" src="/hyper_tour/static/src/js/tour.js"></script>            

    </xpath>        

    </template>


    Thanks for the help.


    Avatar
    Discard
    Related Posts Replies Views Activity
    1
    Jan 24
    1944
    0
    Nov 23
    604
    0
    Sep 23
    496
    0
    Sep 23
    450
    2
    Feb 23
    9253