Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
In my custom module, I am having trouble getting my fields to show up correctly. I am inheriting res.partner and making changes to the FORM view.
When I inherit from base view "base.view_partner_form"
it doesn't show the regular customer view as in sales, instead I got what in the pic below
My code as below
_name = 'director'
_inherit = 'res.partner'
gender = Selection([('male', 'Male'), ('female', 'Female')], default='male')
end_date = Date()
degree = Integer(default=1)
# communication tab
passport = Char()
passport_expire = Date()
driving_license = Char()
visa_date = Date()
visa_expire = Date()
<record id="view_partner_form_inherited" model="ir.ui.view">
<field name="name">Inherited Form View</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<!--<xpath expr="//field[@name='fax']" position="attributes">-->
<!--<xpath expr="//field[@name='fax']" position="after">-->
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
|Asked: 10/3/16, 12:40 PM|
|Seen: 489 times|
|Last updated: 10/3/16, 2:21 PM|