Odoo Help


ODOO9: HOw to make invisible a page without name

Vale Trood
on 4/22/16, 8:10 AM 928 views

    Hello everybode!!

Please can anyone help me know how to make invisible a page added to the res_company model through an other module but which does not contain a name like this <page string="Configuration">

SO that i cant use 

  <xpath expr="//page[1]" position = "attributes">

or even this 

  <xpath expr="//page[@name='configuration']" position="attributes">

Help please


Prakash Sharma

--Prakash Sharma--
--Prakash Sharma--

I like to surround myself with brave, creative people.

My motivation for learning different technologies and algos drive me. I love challenges of a steep learning curve which I believe makes me a better learner. I have a strong desire to learn different technologies, which would enable me to become a full stack developer.

Prakash Sharma
On 4/22/16, 11:33 AM

here is code for it:

<record id="view_company_inherit_form_test" model="ir.ui.view">

<field name="name">res.company.account</field>

<field name="model">res.company</field>

<field name="inherit_id" ref="account.view_company_inherit_form"/>

<field name="arch" type="xml">

<xpath expr="//field[@name='overdue_msg']/.." position="replace">





Vale Trood

--Vale Trood--

| 5 2 7
Tunis, France
--Vale Trood--

Vale Trood
On 4/22/16, 10:25 AM

Here is the page that i want to make invisible:

                <notebook position="inside">

<page string="Overdue Payments">

<separator string="Overdue Payments Message" colspan="4"/>

<field name="overdue_msg" nolabel="1" colspan ="4"/>



hi @Drees i have posted the code <xpath expr="//field[@name='overdue_msg']/.." position="replace">

webkul, Prakash Sharma
on 4/23/16, 2:14 AM

Jignesh Mehta

--Jignesh Mehta--
| 6 5 8
Surat, India
--Jignesh Mehta--

- I have 3+ years of Industry Experience, specializing Odoo Development, Analysis, Customization, Implementation, Integration.
- I have done many Customization modules in Sale, Purchase, Point of Sale, Inventory, CRM and much more. Also Worked in the Odoo Themes like Business Theme or E-Commerce Theme.
- Develop Jewelery Manufacturing process from Scratch. It have more than 10 Department. Develop PDF and Excel reports for this project around 150 per format.

Jignesh Mehta
On 4/22/16, 8:33 AM

Hello Dress Far,

Try this :-

First Solution

<xpath expr="//form/sheet/notebook/page[@name='configuration']" position = "attributes">

     <attribute name="attrs">{'invisible':1}</attribute>


Second Solution :-

<xpath expr="//form/sheet/notebook/page[@name='configuration']" position = "replace" />     

Hope it will works for you.


and a third solution (in case the page has no name and you really have no other solution):

on 4/22/16, 8:38 AM

@Yenthe i need the third solution to my question because there is no name

Vale Trood
on 4/22/16, 9:46 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.


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)


Asked: 4/22/16, 8:10 AM
Seen: 928 times
Last updated: 4/22/16, 11:33 AM