Skip to Content
Menu
This question has been flagged
2 Replies
6980 Views

When I attempt to add a field to the CRM module it is not showing on the page.


XML, as seen on odoo:

 


Result on the page:

 


view.xml

<openerp>
    <data>
        <record model="ir.ui.view">
            <field name="name">module_crm.module_crm</field>
            <field name="model">module_crm.module_crm</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <xpath expr="//notebook/page[@string="Internal Notes"]" position="after">
                    <page string="Subsidiaries">
                        <field name="test123"/>
                    </page>
                </xpath>
            </field>
        </record>
    </data>
</openerp>

models.py

from openerp import models, fields, api
class module_crm(models.Model):
     _name = 'module_crm.module_crm'
     _inherit = 'res.partner'
     test123 = fields.Char("test123", invisible=False)
Avatar
Discard
Best Answer

Hi,

I changed ur Xpath definition from ur code and try with updated code

Avatar
Discard
Best Answer

Where do you want to insert "test123" in page "Subsidiaries" ? l think you must indicated this position. 

Avatar
Discard
Related Posts Replies Views Activity
1
Aug 22
2424
3
Sep 24
14221
1
Apr 23
1130
2
Dec 20
4626
3
Mar 16
3426