I am trying to send from regular OpenERP session a "POS cashier close report" (a small receipt to be printed in the same PosBox proxy).
I tried with following python code, but the proxy complaints that it expects two parameters... Any suggestions or pointers?
import urllib
import urllib2
import json
xdata = {"receipt": '<receipt align="center" font="a" value-thousands-separator="," width="30"><h1>Alias Accesorios</h1><br/><div font="a"><div>Ced.Juridica: 3-101-680968</div></div></receipt>',"timeout":4000}
json_data = json.dumps(xdata)
url = 'http://localhost:8069/hw_proxy/print_xml_receipt'
req = urllib2.Request(url,json_data, headers={"Content-Type":"application/json",})
result = urllib2.urlopen(req)