Skip to content
Snippets Groups Projects
Commit 8b71dd27616e authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

Add a LIMIT clause on a SELECT req

parent 69e3350f7777
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@
('company_id', '=', company.id),
('date_start', '<=', today),
('date_stop', '>=', today),
])
], limit=1)
if not period:
raise exceptions.Warning(_(
'No period found around %s in the "%s" company.'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment