Skip to content

Commit

Permalink
Merge pull request OCA#45 from burroaktoolinc/em_openvalue_fix
Browse files Browse the repository at this point in the history
[FIX] mrp_shop_floor_control
  • Loading branch information
auroraeosrose authored Apr 4, 2023
2 parents cfe0b9c + f592167 commit 9ecb2b6
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 9ecb2b6

Please sign in to comment.