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

How to remove <page> element from inherited view [Closed]

By
priyankahdp
on 4/16/13, 4:08 AM 4,278 views

The Question has been closed

by
priyankahdp
on 04/18/2013 07:36:05
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record model="ir.ui.view" id="view_company_inherit_form">
            <field name="name">res.company.form.inherit</field>
            <field name="inherit_id" ref="base.view_company_form" />
            <field name="model">res.company</field>
            <field name="arch" type="xml">
                <field name="zip" position="replace" />
            </field>
        </record>

    </data>
</openerp>

above shows my company_view.xml file and i replaced zip field because no need of that field in my project.also i need to remove

<page string="Configuration"> element from my view.

please advice me to do that.? i refer the doc but its also mention instructions regarding to how to remove fields from inherit view only

You can directly replace it: &lt;page string="Configuration" position="replace"/&gt;

Sudhir Arya (SA)
on 4/16/13, 4:39 AM
priyankahdp
on 4/16/13, 4:40 AM
3

Keyur

--Keyur--
1165
| 4 4 8
Ahmedabad, India
--Keyur--

Odoo Expert

Keyur
On 4/16/13, 4:25 AM

By using <xpath></xpath> tag you can remove page. For example, <xpath expr="/form/notebook/page[@string='Configuration']" position="replace"/>

thanks u sooo much Keyur u saved my hours :-)

priyankahdp
on 4/16/13, 4:34 AM

About This Community

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

Question tools

1 follower(s)

Stats

Asked: 4/16/13, 4:08 AM
Seen: 4278 times
Last updated: 3/16/15, 8:10 AM