Skip to content

Commit

Permalink
Merge PR #366 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by etobella
  • Loading branch information
OCA-git-bot committed Oct 24, 2023
2 parents 1ea7ab7 + c410183 commit f98a179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maintenance_plan/models/maintenance_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class MaintenancePlan(models.Model):

@api.model
def _search_search_equipment(self, operator, value):
if operator != "=" or not value:
if operator != "=" or (not value and not isinstance(value, models.NewId)):
raise ValueError(_("Unsupported search operator"))
plans = self.search([("generate_with_domain", "=", True)])
plan_ids = []
Expand Down

0 comments on commit f98a179

Please sign in to comment.