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


 

 

This is my code in xml:

 <h1>Manufacturing Order <field name="name" class="oe_inline"/></h1>

i want to change Manufacturing Order to Job Order. how will i going to change it with doing the override?? can i do the xpath??

Avatar
Discard
Best Answer

Hello,

Your  "inherited" view architecture should be,

<?xml version="1.0"?>

<data>

      <xpath expr="/form/sheet/div[@class='oe_title']" position="replace">

          <div class="oe_title"> <h1>Job Order<field name="name" class="oe_inline"/></h1> </div>

      </xpath>

</data>

Let me know if this helps,

Avatar
Discard
Author

thank you:) that code works. but another question please do you know how to solve this one https://www.odoo.com/forum/help-1/question/how-to-change-the-name-of-this-two-how-can-i-change-it-without-doing-the-override-in-menuitem-and-the-header-58580