Skip to content

Commit cc9973d

Browse files
committed
Merge pull request odoo#2955 from odoo-dev/8.0-wmsmrpdatefix-jco
[FIX] Can not execute line when stop date is EARLIER than current date
2 parents 8ff7230 + 3b46d03 commit cc9973d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/mrp/mrp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def _factor(factor, product_efficiency, product_rounding):
278278

279279
for bom_line_id in bom.bom_line_ids:
280280
if bom_line_id.date_start and bom_line_id.date_start > time.strftime(DEFAULT_SERVER_DATETIME_FORMAT) or \
281-
bom_line_id.date_stop and bom_line_id.date_stop > time.strftime(DEFAULT_SERVER_DATETIME_FORMAT):
281+
bom_line_id.date_stop and bom_line_id.date_stop < time.strftime(DEFAULT_SERVER_DATETIME_FORMAT):
282282
continue
283283
# all bom_line_id variant values must be in the product
284284
if bom_line_id.attribute_value_ids:

0 commit comments

Comments
 (0)