|
@@ -37,6 +37,10 @@ class StockWarehouseTransferLine(models.Model):
|
|
|
product_id = fields.Many2one(
|
|
|
comodel_name='product.product',
|
|
|
string='Producto')
|
|
|
+ ean13 = fields.Char(
|
|
|
+ string='Código EAN',
|
|
|
+ related='product_id.ean13',
|
|
|
+ readonly=True)
|
|
|
product_qty = fields.Float(
|
|
|
string='Cantidad',
|
|
|
default=_get_default_product_qty)
|
|
@@ -97,6 +101,7 @@ class StockWarehouseTransferLine(models.Model):
|
|
|
return {
|
|
|
'name' : 'Warehouse Transfer',
|
|
|
'product_id' : self.product_id.id,
|
|
|
+ 'ean13': self.ean13,
|
|
|
'product_uom' : self.product_uom_id.id,
|
|
|
'product_uom_qty' : self.product_qty,
|
|
|
'location_id' : self.source_location.id,
|