Skip to Content
Menu
This question has been flagged
2 Replies
2462 Views

Hello,

I use <xpath> to edit my own invoice/saleorder look and it work correctly.

But when i try with the mrp_repair, nothing .. Any error, just the look of the order stay the same...


This is my view :


<template id="report_repair_document_ht" inherit_id="mrp_repair.report_mrprepairorder">

        <xpath expr="//div[@class='page']" position="replace">

                <div class="page">

                        My code                 

                </div>

        </xpath>

</template> 


Thank you.

Avatar
Discard

can you try going to the original view you want to edit on the front end user interface settings and add an extension view using the inherited views tab? This way you can avoid have to use the template tags and that reduces your space for error.

Author Best Answer

What is understood is, i have to tell the name of my view : "template id="..."

Then the view which i want edit : inherit_id="..."

Then where i want start to edit : xpath expr="..."

And how i want do it : position="..."


So I think my code is OK, and this form work correctly with another view so i don't understand why it doesn't work here ...

Avatar
Discard
Best Answer

Why is the template tag outside of the xpath expression? I'm not sure if this is the problem here but I've found that the xpath should be the outermost tag. 

Avatar
Discard