Odoo Help


Adding a custom field to the Contacts form

on 12/17/14, 6:29 PM 945 views

I'm trying to make a custom module which requires a boolean field to be added in the contact window.

To be more specific, in the "Sales" tab under the menu "Customers", then you select a customer and then under the tab "Contacts". When you select a contact a window opens where it shows you some information about the contact. I would like to add a boolean field there.

So there's a python file in the custom module where I've added the column:

class res_partner(osv.osv):
_inherit = 'res.partner'
_columns = { 'x_invoice_partner': fields.boolean('Invoice partner', help="Select this if you want to send invoices to this person"), }

Now I only need to add the field to the xml in order for it to show up but I'm not sure how to setup the xml since this is a window that comes from an action.

Any help would be much appreciated, thanks in advance

Glenn, try to activate the developer's mode to see which view is active when the action that you mentioned is called.

on 12/17/14, 9:22 PM

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

2 follower(s)


Asked: 12/17/14, 6:29 PM
Seen: 945 times
Last updated: 3/16/15, 8:10 AM