diff options
| author | Moises Lopez - https://www.vauxoo.com/ <moylop260@vauxoo.com> | 2015-02-20 12:18:06 -0600 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2015-02-23 10:44:04 +0530 |
| commit | 80c2ee2e6c2b25f36809fd4ad9ec7709e9919d11 (patch) | |
| tree | 89962184ec88dadf947a5ba25960981179fddb18 | |
| parent | 95abcbb0397d4f790306bc8382f1dc06a9cf3c0b (diff) | |
[IMP] stock: Add limit=1 in search of _picking_assign
| -rw-r--r-- | addons/stock/stock.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 5f3cc6596d1..48c1eaec9bb 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2106,7 +2106,7 @@ class stock_move(osv.osv): ('group_id', '=', procurement_group), ('location_id', '=', location_from), ('location_dest_id', '=', location_to), - ('state', 'in', ['draft', 'confirmed', 'waiting'])], context=context) + ('state', 'in', ['draft', 'confirmed', 'waiting'])], limit=1, context=context) if picks: pick = picks[0] else: |
