Pārlūkot izejas kodu

Agregar código ean a transferencia

SEBAS 5 mēneši atpakaļ
vecāks
revīzija
7227b4fc05

BIN
__init__.pyc


BIN
models/__init__.pyc


BIN
models/search_barcode_picking.pyc


BIN
models/stock_picking.pyc


BIN
models/stock_warehouse_transfer.pyc


+ 5 - 0
models/stock_warehouse_transfer_line.py

@@ -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,

BIN
models/stock_warehouse_transfer_line.pyc


+ 1 - 0
views/stock_warehouse_transfer.xml

@@ -48,6 +48,7 @@
                         <field colspan="4" name="lines" nolabel="1" attrs="{'readonly':[('state','!=','draft')]}">
                             <tree editable="bottom">
                                 <field name="product_id" domain="[('type','!=','service')]" required="1" options="{'no_create':True,'no_open':True}"/>
+                                <field name="ean13"/>
                                 <field name="product_qty" required="1" sum="qty"/>
                                 <field name="product_uom_id" required="1" invisible="1"/>
                                 <field name="source_location" invisible="1"/>