HI there,
I am trying to add a "vat " field to the Sales Order model so I will be able to display the vat number in tree view. "vat" field is currently present in Partner / Companies / Users. This is my py code:
from openerp import models, fields class SaleOrderInherited(models.Model): _inherit = 'sale.order' vat = fields.Char(string='vat', related='partner.vat')