mirror of
https://bitbucket.org/presik/presik_pos.git
synced 2023-12-14 06:03:00 +01:00
minor fix
This commit is contained in:
parent
282a8f7556
commit
58bd0d7076
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue