stock_inventory_product_ean13.py 332 B

1234567891011
  1. from openerp import models, fields, api
  2. class StockInventoryLine(models.Model):
  3. _inherit = 'stock.inventory.line'
  4. @api.one
  5. @api.depends('product_id')
  6. def get_product_ean13(self):
  7. self.ean13 = self.product_id.ean13
  8. ean13 = fields.Char(string="Codigo de Barras", compute="get_product_ean13")