Odoo Help


add new fileds in view_partner_form

on 1/4/16, 4:55 AM 738 views

I tried this following code to add new fileds in the res partner form view that I have already inherited in a new module  but nothing showed up after updating with no errors and no effects menchening that i want to add those fileds when cheking the company type button radio not tye person one because in the main code there are some fileds that are invsible depending on this radio button company type.so what could be wrong in this code not showing any changes in my new model

<?xml version="1.0" encoding="utf-8"?>



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

<field name="name">res.partner.form.inherit</field>

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

<field name="inherit_id" ref="base.view_partner_form"/>

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

<xpath expr="//field[@name='website']" position="after">

<field name="rs_ctr"/>

<field name="nb_ligne"/>





which version of odoo you use ?

DevTalents Info
on 1/4/16, 5:12 AM

had you put this view file in __openerp__.py ?

Krupesh Laiya
on 1/4/16, 5:15 AM

yes I have put it in __openerp__.py I'm using odoo9

on 1/4/16, 5:21 AM
Manish Bohra
On 2/23/18, 1:33 AM

Hello Amina, 

change following in your code. I hope it's work.

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

<xpath expr="//field[@name='website']" position="after">

<field name="rs_ctr"/>

<field name="nb_ligne"/>



On 1/4/16, 6:13 AM

well it worked now after adding a missing /> in my code but those fields are showing in 2 selections button radio (individual/company) so I want to show them only on checking the copmany radio button please any ideas??how may I do that?

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: 1/4/16, 4:55 AM
Seen: 738 times
Last updated: 2/23/18, 1:33 AM