from openerp import models,api,fields class sale_order_line(models.Model): _inherit = 'sale.order.line' _name = 'sale.order.line' @api.one @api.depends('product_id') def _get_factory_ref(self): self.product_factory_ref = self.product_id.factory_reference product_factory_ref = fields.Char(string="Referencia de Fabrica", compute="_get_factory_ref")