field shop to sale

This commit is contained in:
sinergia 2023-07-25 22:20:50 -05:00
parent 4f378cbae9
commit 5bb58622c3
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -5,7 +5,7 @@ depends:
product
sale
sale_supply_production
sale_printer
#sale_printer
production
account_invoice
xml: