summaryrefslogtreecommitdiff
path: root/addons/stock/models/procurement.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-03-07 18:46:38 +0100
committerChristophe Simonis <chs@odoo.com>2018-03-07 18:46:38 +0100
commit4aa5ec3fa511e42a08318fe66dde3bd57f0d1f09 (patch)
treed3de91d0113164ce313d7eff44c2f25c7e95f743 /addons/stock/models/procurement.py
parent3c821d4035d0c85f691653c47986d8f4c3dfc51d (diff)
parentd67b410dfcd67d2540628d4f6be0daf8861c4a46 (diff)
[MERGE] forward port branch 11.0 up to d67b410dfcd
Diffstat (limited to 'addons/stock/models/procurement.py')
-rw-r--r--addons/stock/models/procurement.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/models/procurement.py b/addons/stock/models/procurement.py
index bdd554ca8cf..ba047badef8 100644
--- a/addons/stock/models/procurement.py
+++ b/addons/stock/models/procurement.py
@@ -236,7 +236,7 @@ class ProcurementGroup(models.Model):
self.sudo()._procure_orderpoint_confirm(use_new_cursor=use_new_cursor, company_id=company_id)
# Search all confirmed stock_moves and try to assign them
- confirmed_moves = self.env['stock.move'].search([('state', '=', 'confirmed')], limit=None, order='priority desc, date_expected asc')
+ confirmed_moves = self.env['stock.move'].search([('state', '=', 'confirmed'), ('product_uom_qty', '!=', 0.0)], limit=None, order='priority desc, date_expected asc')
for moves_chunk in split_every(100, confirmed_moves.ids):
self.env['stock.move'].browse(moves_chunk)._action_assign()
if use_new_cursor: