From 864739567fc356eef64bb7c2621f755a665db832 Mon Sep 17 00:00:00 2001 From: Wilson Gomez Date: Sat, 11 Nov 2023 10:24:46 -0500 Subject: [PATCH] minor fix see tables --- app/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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