From f592167e4bd5791e445354ab17a65bfb81aaa461 Mon Sep 17 00:00:00 2001 From: Elizabeth M Smith Date: Tue, 4 Apr 2023 10:11:40 -0400 Subject: [PATCH] Fixes for zero on expected duration on operations --- purchased/mrp_shop_floor_control/__manifest__.py | 2 +- purchased/mrp_shop_floor_control/wizards/mrp_confirmation.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/purchased/mrp_shop_floor_control/__manifest__.py b/purchased/mrp_shop_floor_control/__manifest__.py index fc281c27d252..9aa1e2e8ecde 100644 --- a/purchased/mrp_shop_floor_control/__manifest__.py +++ b/purchased/mrp_shop_floor_control/__manifest__.py @@ -3,7 +3,7 @@ { "name": "MRP Shop Floor Control", "summary": "MRP Shop Floor Control", - "version": "16.0.1.0", + "version": "16.0.1.1", "category": "Manufacturing", "website": "www.openvalue.cloud", "author": "OpenValue", diff --git a/purchased/mrp_shop_floor_control/wizards/mrp_confirmation.py b/purchased/mrp_shop_floor_control/wizards/mrp_confirmation.py index 53ba6a2eaa83..19346ca8f0a1 100644 --- a/purchased/mrp_shop_floor_control/wizards/mrp_confirmation.py +++ b/purchased/mrp_shop_floor_control/wizards/mrp_confirmation.py @@ -89,7 +89,7 @@ def _compute_date_end(self): @api.constrains("date_start") def check_date_end(self): - if self.date_end > datetime.datetime.now(): + if self.date_end and self.date_end > datetime.datetime.now(): raise UserError(_("End Date in the future")) @api.onchange("production_id")