From 5bb58622c32a5e01bcfc31eac6f1ef1bcb1091f7 Mon Sep 17 00:00:00 2001 From: sinergia Date: Tue, 25 Jul 2023 22:20:50 -0500 Subject: [PATCH] field shop to sale --- sale.py | 2 +- tryton.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sale.py b/sale.py index e3be7f1..e805ff8 100644 --- a/sale.py +++ b/sale.py @@ -67,11 +67,11 @@ class Sale(metaclass=PoolMeta): shop = context['shop'] Printer = pool.get('sale.printer') printers = Printer.search([('zone', '=', 'kitchen'), ('shop', '=', shop)]) - if not printers: return printer = printers[0] + url = f"http://{printer.api.ip_address}/order_kitchen" customer_order = cls.report_customer_order(records) diff --git a/tryton.cfg b/tryton.cfg index 5b729a7..206d8cb 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -5,7 +5,7 @@ depends: product sale sale_supply_production - sale_printer + #sale_printer production account_invoice xml: