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 committed by GitHub
parent ce4f295b77
commit ed2c44179c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -399,6 +399,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)