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.