minor fix
This commit is contained in:
parent
bf17c1c842
commit
ee62182b63
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue