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)]