Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2303 Представления

Hello,

I'm trying to connect the point of sale to an external e-billing service and I need to print a signature barcode, provided by this service, in the receipt. Right now I send the order details to the service as soon as it's created in Odoo, and storing the barcode as a binary field in the order.

The problem is that I haven't been able to print the barcode into the receipt. I make an RPC call but it works asynchronously and the response is loaded only after the receipt is printed.

Does anyone know the proper way to make the receipt wait for the barcode before printing? Deferred functions haven't been of any help and I don't really understand how they work.

Thanks.

Аватар
Отменить
Лучший ответ

May be you can break the flow by making it fetch the barcode first after when "Validate" button is clicked and once barcode is received then it would send for print out.

Аватар
Отменить
Автор

Thanks. Unfortunately it doesn't work if the POS is configured for automate print, as the print job is triggered in parallel with the validation/server save. It does work when I reprint manually, however, so at least there's an advance, and thanks a lot for that. But I'd still need it to work for every case.

Related Posts Ответы Просмотры Активность
1
июл. 25
2018
4
авг. 25
3283
0
мар. 25
1302
2
янв. 25
2443
0
янв. 25
1389