Odoo Help

Welcome!

This community 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.

0

Remove inherited tab

By
supreeth
on 5/25/16, 12:26 AM 215 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)

--Jusab Sida (jsi)--
Tiny ERP Pvt Ltd
http://www.odoo.com
874
| 2 1 5
Gandhinagar, India
--Jusab Sida (jsi)--


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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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