Skip to content

Commit

Permalink
Fixes for zero on expected duration on operations
Browse files Browse the repository at this point in the history
  • Loading branch information
auroraeosrose committed Apr 4, 2023
1 parent 7147c41 commit f592167
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion purchased/mrp_shop_floor_control/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f592167

Please sign in to comment.