diff --git a/app/main.py b/app/main.py index 9b5a794..3e3e27b 100644 --- a/app/main.py +++ b/app/main.py @@ -794,7 +794,7 @@ class AppWindow(FrontWindow): self.set_state('disabled') self.buttons_stacked.hide() self.buttons_function.hide_buttons() - self._sale = {} + self.sale_id = None else: self.start_front.hide() if hasattr(self, 'WidgetShop'): @@ -2448,7 +2448,7 @@ class AppWindow(FrontWindow): # list_price = line['product'].get('list_price') try: code = line['product.']['code'] - except: + except Exception: code = line['product']['code'] product = self.Product.find([('code', '=', code)], fields=["list_price"]) list_price = product[0].get('list_price') @@ -3727,7 +3727,6 @@ class AppWindow(FrontWindow): self.dialog_test_printer.exec_() def on_selected_folio_transfer(self): - sale = self.store.store folio_id = self.dialog_search_folio_transfer.get_id() if not folio_id: return