From 9ba3aa0f867aba9f256f9a2af85d600610774a76 Mon Sep 17 00:00:00 2001 From: snt Date: Thu, 16 Sep 2021 15:41:36 +0200 Subject: [PATCH] =?UTF-8?q?stock.move=20necesita=20product.product=20en=20?= =?UTF-8?q?vez=20de=20product.template=20si=20est=C3=A1n=20activas=20las?= =?UTF-8?q?=20variantes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- product_create_stock_picking/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_create_stock_picking/models/product_template.py b/product_create_stock_picking/models/product_template.py index 10c570c..c951bb3 100644 --- a/product_create_stock_picking/models/product_template.py +++ b/product_create_stock_picking/models/product_template.py @@ -25,7 +25,7 @@ class ProductTemplate(models.Model): if p.qty_available > 0: move_vals = { 'name': p.name, - 'product_id': p.id, + 'product_id': p.product_variant_id.id, 'product_uom_qty': p.qty_available, 'product_uom': p.uom_id.id, 'picking_id': picking.id,