minor fix

This commit is contained in:
Camilo Sarmiento 2020-10-15 15:40:54 -05:00
parent 282a8f7556
commit 58bd0d7076

View file

@ -2103,7 +2103,7 @@ class MainWindow(FrontWindow):
product_id = line['product']['id']
if product_id:
product, = self.Product.find([('id', '=', product_id)], ctx=self.stock_context)
if product.get('quantity') and not self._check_stock_quantity(product):
if 'quantity' in product and not self._check_stock_quantity(product):
return False
return True