diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-03-05 10:45:53 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-03-05 10:45:53 +0100 |
| commit | df3c33111e00f03538167ca4e0ddeaaf11731e03 (patch) | |
| tree | 5e1572da844f0fde73f8bd7c70f8f63e3bb3af14 /addons/stock/models/procurement.py | |
| parent | 153ae5e8b834345673a1fa23e0724e4c67a66df2 (diff) | |
| parent | 554afff3ac52942987bb36d066731d9784c16e05 (diff) | |
[MERGE] forward port branch 10.0 up to 554afff3ac5
Diffstat (limited to 'addons/stock/models/procurement.py')
| -rw-r--r-- | addons/stock/models/procurement.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/models/procurement.py b/addons/stock/models/procurement.py index a59f0050e6d..d818a6c5721 100644 --- a/addons/stock/models/procurement.py +++ b/addons/stock/models/procurement.py @@ -244,7 +244,7 @@ class ProcurementOrder(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 x in xrange(0, len(confirmed_moves.ids), 100): # TDE CLEANME: muf muf self.env['stock.move'].browse(confirmed_moves.ids[x:x + 100]).action_assign() |
