[FIX] website_event: possible to order a negative quantity

bzr revid: chm@openerp.com-20140128170846-8elbtry7mzrdmeop
This commit is contained in:
Christophe Matthieu 2014-01-28 18:08:46 +01:00
parent c5c61dd4ba
commit 59afba09db
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ class website_event(website_event):
for key, value in post.items():
try:
quantity = int(value)
assert quantity > 0
except:
quantity = None
ticket_id = key.split("-")[0] == 'ticket' and int(key.split("-")[1]) or None