Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3133 Lượt xem

I wanted to run the javascript I run the code

 <template id = "assets_backend" name = "helpdesk assets" inherit_id = "web.assets_backend" >

    <xpath  expr = "// script [last ()]"  position = "after" > 
        <link  rel = "stylesheet"  type = "text / scss"  href = "/helpdesk/static/src/scss/helpdesk.scss" /> 
        <script  type = "text / javascript"  src = "/helpdesk/static/src/js/helpdesk_dashboard.js" > </script> 
    </xpath> 
</template>

sce then my code is showing the above error

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

hello Ashwin,

Rename your template id="assets_backend" to template id="assets_backend_inherit"

and <xpath  expr = "// script [last ()]"  position = "after" > to <xpath expr="." position="inside">

Regards,




Email:     odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

   


Ảnh đại diện
Huỷ bỏ