bug fixes for auto reload kitchen display when self order transfered to a table
This commit is contained in:
parent
eb10846480
commit
8f94a48948
BIN
custom_pos_receipt/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
custom_pos_receipt/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
BIN
custom_preparation_display/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
custom_preparation_display/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -13,7 +13,7 @@ class CustomPosOrder(models.Model):
|
||||
|
||||
for display in displays:
|
||||
#self.env['pos_preparation_display.display']._send_load_orders_message()
|
||||
self.env['bus.bus']._sendone(f'preparation_display-{self.access_token}', 'load_orders', {
|
||||
self.env['bus.bus']._sendone(f'preparation_display-{display.access_token}', 'load_orders', {
|
||||
'preparation_display_id': display.id,
|
||||
'sound': True
|
||||
})
|
||||
|
||||
@ -37,8 +37,11 @@ patch(PreparationDisplay.prototype, {
|
||||
this.posHasProducts = await this.loadPosHasProducts();
|
||||
this.loadingProducts = false;
|
||||
|
||||
setTimeout(function(){
|
||||
window.location.reload();
|
||||
}, 5000);
|
||||
// force refresh every 5 seconds
|
||||
|
||||
|
||||
// setTimeout(function(){
|
||||
// window.location.reload();
|
||||
// }, 5000);
|
||||
},
|
||||
});
|
||||
BIN
pos_refund_password/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
pos_refund_password/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
BIN
pos_refund_password/model/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
pos_refund_password/model/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
BIN
pos_refund_password/model/__pycache__/pos_config.cpython-312.pyc
Normal file
BIN
pos_refund_password/model/__pycache__/pos_config.cpython-312.pyc
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user