跳至内容
菜单
此问题已终结
2469 查看

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.


    形象
    丢弃
    相关帖文 回复 查看 活动
    1
    2月 25
    3297
    0
    11月 23
    1589
    0
    9月 23
    2031
    0
    9月 23
    1737
    2
    6月 25
    11252