Skip to content
Snippets Groups Projects
Commit f38fd985 authored by Christophe Matthieu's avatar Christophe Matthieu
Browse files

[FIX] website_sale: add to cart 1 item if number > 1 or set_number > 1

bzr revid: chm@openerp.com-20140425095051-5mxza3q2lblmy90r
parents ab1f312c 46dd292c
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,12 @@ class Website(orm.Model):
else:
fields = [k for k, v in order_line_obj._columns.items()]
values = order_line_obj.default_get(cr, SUPERUSER_ID, fields, context=context)
quantity = 1
if set_number >= 0:
quantity = set_number
elif number >= 0:
quantity = number
else:
quantity = 1
# change and record value
if quantity:
......
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