Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2470 Vizualizări

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.


    Imagine profil
    Abandonează
    Related Posts Răspunsuri Vizualizări Activitate
    1
    feb. 25
    3298
    0
    nov. 23
    1589
    0
    sept. 23
    2031
    0
    sept. 23
    1737
    2
    iun. 25
    11252