remove printers

This commit is contained in:
Camilo Sarmiento 2020-09-09 14:43:57 -05:00
parent 817d17721f
commit 6821337259
1 changed files with 0 additions and 4 deletions

View File

@ -2019,14 +2019,12 @@ class MainWindow(FrontWindow):
def _check_quantity(self):
for line in self.model_sale_lines._data:
product_id = None
print(line['product'])
if isinstance(line['product'], int):
product_id = line['product']
elif isinstance(line['product'], dict):
product_id = line['product']['id']
if product_id:
product, = self.Product.find([('id', '=', product_id)])
print(product)
if product.get('quantity') and not self._check_stock_quantity(product):
return False
return True
@ -2077,9 +2075,7 @@ class MainWindow(FrontWindow):
return True
qty_ = Decimal(product['quantity'])
if self._password_admin:
print('hello')
if (request_qty and qty_ < request_qty) or (qty_ <= 0):
print('hello')
self.message_bar.set('without_stock_quantity', product['name'])
self.dialog_force_assign.exec_()
password = self.field_password_force_assign_ask.text()