minor fix

This commit is contained in:
Wilson Gomez 2023-10-17 09:48:38 -05:00
parent bf17c1c842
commit ee62182b63
1 changed files with 6 additions and 2 deletions

View File

@ -348,8 +348,12 @@ class FrontWindow(QMainWindow):
self.RestTables = Model('sale.shop.table', self.ctx, main_window=self)
self.Consumer = Model('party.consumer', self.ctx, main_window=self)
# TODO get product and printers
self.printers_shop, self.products_printers = self.Sale.get_product_printers(
self.shop['id'])
self.printers_shop, self.products_printers = None, None
try:
self.printers_shop, self.products_printers = self.Sale.get_product_printers(
self.shop['id'])
except Exception:
pass
self._action_report_invoice, = self.ActionReport.find([
('report_name', '=', 'account.invoice'),