Set quantity to None in case product code is numeric

#162985
This commit is contained in:
Raimon Esteve 2023-10-24 16:03:05 +02:00
parent 521bde0c4c
commit 193b9c96bf

View file

@ -397,6 +397,8 @@ class WizardAddProduct(Wizard):
return 'choose'
product, = products
# set quantity to None in case product code is numeric
quantity = None
self.start.last_product = product
lines = self.add_sale_line(self.start.lines, product, quantity)