Skip to Content
Menú
This question has been flagged
2413 Vistes

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
    Descartar
    Related Posts Respostes Vistes Activitat
    1
    de febr. 25
    3130
    0
    de nov. 23
    1490
    0
    de set. 23
    1857
    0
    de set. 23
    1557
    2
    de juny 25
    10981