Odoo Help

Cyril Gaspard (GEM)
On 2/21/15, 10:14 PM


you must had field partner_id in your code, like it is made in class res users.


Atchuthan - Technical Consultant, Sodexis Inc
On 2/23/15, 2:09 AM

In inherits delegation, you define a dictinary that implies the object and the column name in current table.

from openerp import fields
from openerp import models

class Example (models.Model):
    _name = 'example.prueba'
    _inherits = {
        'res.partner': 'partner_id',

    sample_field = fields.Char(string="Field")
    partner_id = fields.Many2one('res.partner',
# Need to define the key defined at _inherits


Hi, no need to repeat the same answer I done one day before you this is the second time, see : https://www.odoo.com/forum/help-1/question/xpath-for-order-line-field-in-sale-order-view-75925#answer-75933 . thanks

Cyril Gaspard (GEM)
on 2/23/15, 6:29 PM

Your answer was pointed correctly but no sufficient explanation was available with it. So, i added an answer that is easier for Odoo forum newbies.

Atchuthan - Technical Consultant, Sodexis Inc
on 2/24/15, 12:02 AM

Check the datetime stamp of xpath question that have 2 answers: Mine(2/10/15, 3:58 PM) and Ivan(2/10/15, 4:06 PM). I think we both added an answer simultaneously.

Atchuthan - Technical Consultant, Sodexis Inc
on 2/24/15, 12:15 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 2/21/15, 7:32 PM
Seen: 4445 times
Last updated: 3/16/15, 8:10 AM