Odoo Help

0

Remove inherited tab

By
supreeth
on 5/25/16, 12:26 AM 439 views

hi all,

I have inherited 'sales order' from 'sales' and i need to remove 'Other Information' tab from 'sales order'.

i tried using <xpath>

<xpath expr="//notebook/page[2]" position="replace">
<attribute name="invisible"></attribute>
</xpath>

and

 <xpath expr="/form/sheet/notebook/page[2][@string= 'Other Information']" invisible="1"></xpath>    
these two are not working. Can anyone send the proper xpath to remove tab?


2
Jusab Sida (jsi)
On 5/25/16, 2:28 AM

Just do a small change in you code...

<xpath expr="//notebook/page[2]" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>

 

@Jusab Sida Thank you, it worked

supreeth
on 5/25/16, 2:36 AM

you were very close :) Enjoy

Jusab Sida (jsi)
on 5/25/16, 3:05 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 5/25/16, 12:26 AM
Seen: 439 times
Last updated: 5/25/16, 2:33 AM