Odoo Help

0

How to replace notebook page "Sales & Purchases" ?

By
Ahmed Hassan El-mawaziny
on 2/13/14, 5:18 PM 432 views

I want to hide "Sales & Purchases" page (tab), when i install my module it show me an error about mail and product views

for mail: AttributeError: View definition error for inherited view 'mail.view_emails_partner_info_form' on model 'res.partner': Element '<xpath expr="//field[@name='active']">' not found in parent view 'base.view_partner_form'

my view: <openerp> <data> <record model="ir.ui.view" id="partner_donorlocalpartner_form_view"> <field name="name">pmu.donorlocalpartner</field> <field name="model">res.partner</field> <field name="inherit_id" ref="base.view_partner_form"/> <field name="arch" type="xml"> <data> <field name="name" position="after"> <field name="pmu_partner_type"/> </field> <xpath expr="//notebook/page[@string='Sales & Purchases']" position="replace"> </xpath> </data> </field> </record> </data> </openerp>

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

0 follower(s)

Stats

Asked: 2/13/14, 5:18 PM
Seen: 432 times
Last updated: 3/16/15, 8:10 AM