Hi everybody
I'd like to know how to modify the POS ticket. I know its in the point_of_sale module and that I have to edit the file under /static/src/xml/ and then edit the file pos.xml.
So far I've managed to add some details that I'd like etc but now my question is how do I get the logo from the company?
I've managed to hardcode it like this:
<img width="100" hspace="20" src="/point_of_sale/static/src/img/logo.png" />
But I'd like to get the image from the database, being the logo from the company.
By default the email etc is fetched by
<t t-esc="widget.pos.company.phone || ''"/>
But when I do this for the logo (<t t-esc="widget.pos.company.logo || ''"/>) nothing is printed. Can anybody tell me how to fix this?
As a second part I would also like to print out the details of the customer in the ticket (customer name, phone, address,..). How can I get those values on the ticket?
Thanks
Yenthe
What about company street, city, country?
Pascal the answer down here from Emipro explains how to get the street, city, .. First load in the model, add it to eh JS and then print it :)