From 136ff9855923d7688dbbff4ed35ad65d26e10b04 Mon Sep 17 00:00:00 2001 From: santiky Date: Thu, 16 Sep 2021 15:16:02 +0200 Subject: [PATCH] =?UTF-8?q?Cambiado=20el=20estado=20del=20nuevo=20albar?= =?UTF-8?q?=C3=A1n=20a=20borrador=20para=20poder=20editar=20las=20ubicacio?= =?UTF-8?q?nes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- product_create_stock_picking/models/product_template.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/product_create_stock_picking/models/product_template.py b/product_create_stock_picking/models/product_template.py index 5559b65..1133671 100644 --- a/product_create_stock_picking/models/product_template.py +++ b/product_create_stock_picking/models/product_template.py @@ -22,7 +22,6 @@ class ProductTemplate(models.Model): picking = self.env['stock.picking'].create(picking_vals) for p in self: - _logger.warning("product : %s" %p.name) move_vals = { 'name': p.name, 'product_id': p.id, @@ -31,7 +30,7 @@ class ProductTemplate(models.Model): 'picking_id': picking.id, 'location_id': self.env.ref('stock.stock_location_stock').id, 'location_dest_id': self.env.ref('stock.stock_location_stock').id, - 'state': 'waiting', + 'state': 'draft', 'procure_method': 'make_to_order', } picking.move_lines = [(0, 0, move_vals)]