CHANGE PRINT
This commit is contained in:
parent
2c43a8f9da
commit
c26377c6d7
|
@ -1627,7 +1627,7 @@ class DialogInfoProduct(QuickDialog):
|
|||
]
|
||||
domain.append([
|
||||
'OR',
|
||||
# ('barcode', 'ilike', '%' + filter + '%'),
|
||||
('barcode', 'ilike', '%' + filter + '%'),
|
||||
('code', 'ilike', '%' + filter + '%'),
|
||||
('name', 'ilike', '%' + filter + '%')
|
||||
])
|
||||
|
|
|
@ -205,6 +205,7 @@ class AppWindow(FrontWindow):
|
|||
'user': self.user,
|
||||
'user_id': self._user['id'],
|
||||
})
|
||||
print(ctx_printing)
|
||||
ctx_printing['row_characters'] = self.row_characters
|
||||
ctx_printing['delta_locale'] = DELTA_LOCALE
|
||||
locale_logo = ''
|
||||
|
@ -2461,7 +2462,7 @@ class AppWindow(FrontWindow):
|
|||
]
|
||||
domain.append([
|
||||
'OR',
|
||||
# ('barcode', '=', code),
|
||||
('barcode', '=', code),
|
||||
('code', '=', code)
|
||||
])
|
||||
|
||||
|
|
|
@ -93,6 +93,7 @@ class Receipt(object):
|
|||
self._print_invoice_payment = context.get('print_invoice_payment')
|
||||
self._delta_locale = context.get('delta_locale')
|
||||
self._environment = environment
|
||||
self.order_copies = context.get('order_copies')
|
||||
|
||||
self._row_characters = _ROW_CHARACTERS
|
||||
if context.get('row_characters'):
|
||||
|
@ -834,9 +835,11 @@ class Receipt(object):
|
|||
return all(res)
|
||||
|
||||
def _print_order(self, order, reversion):
|
||||
self.print_body_order(order, reversion)
|
||||
self._print_info_consumer(order)
|
||||
self._printer.cut()
|
||||
print(self.order_copies, 'cantidad de copias')
|
||||
for copie in range(self.order_copies):
|
||||
self.print_body_order(order, reversion)
|
||||
self._print_info_consumer(order)
|
||||
self._printer.cut()
|
||||
# self._row_characters = order['row_characters']
|
||||
return True
|
||||
|
||||
|
@ -948,6 +951,8 @@ class Receipt(object):
|
|||
self._printer.text(f' NOTA -> {msg_note}')
|
||||
self.print_enter()
|
||||
self.print_enter()
|
||||
print('este es el camino de la comanda')
|
||||
self.print_enter()
|
||||
|
||||
self.print_enter()
|
||||
self.print_horinzontal_double_line()
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
[General]
|
||||
server=127.0.0.1
|
||||
port=8000
|
||||
server=192.168.1.29
|
||||
port=8010
|
||||
# options http or https
|
||||
mode=http
|
||||
database=DEMO
|
||||
user=admin
|
||||
database=ZOMAC
|
||||
user=soporte
|
||||
|
||||
#########################################
|
||||
# Printer Interface and Printer name
|
||||
|
|
Loading…
Reference in New Issue