From b5043c10ae08a0f2a3ff3402ad8ffdb07b3f8d63 Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Thu, 10 Jan 2013 23:49:16 +0100 Subject: [PATCH] Use a list of dictionaries in create(). issue2358 review266002 --- stock.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stock.py b/stock.py index 9c65778fa4..b5c4c8c6f8 100644 --- a/stock.py +++ b/stock.py @@ -53,10 +53,10 @@ class Move: cls.raise_user_error('lot_required', (move.product.rec_name,)) @classmethod - def create(cls, values): - move = super(Move, cls).create(values) - cls.check_lot([move]) - return move + def create(cls, vlist): + moves = super(Move, cls).create(vlist) + cls.check_lot(moves) + return moves @classmethod def write(cls, moves, values):