I need to modify the receipt of Point of sale
In Odoo point of sale, the are two templates to print receipt : XmlReceipt and PosTicket
As I use a Posbox I guess I have to modify XmlReceipt. I wonder if there is a way to inherit the original template ? I found examples on how to do it with PosTicket template but Xmlreceipt doesnt seem to work the same way.
Any ideas ?
Thank you.
Ok, I found a solution. Example to print the unit price with tax included, I wrote my xml like this :
As far as I know XmlReceipt and PosTicket templates are both defined in pos.xml so you can inherit both of them in a same way. Example of inheriting XmlReceipt:
I extends template "PosTicket", find element by t-jquery, replace with my data (Add "Free" to product's name)