Skip to Content
Menu
This question has been flagged
1 Reply
2516 Views

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

Avatar
Discard
Best Answer

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

   


Avatar
Discard