Odoo Help


How to alter the POS receipt?

on 11/22/13, 12:23 AM 23,034 views

As far as I know there are 4 files which could possibly affect the POS receipt:

addons/point_of_sale/report/pos_receipt.sxw addons/point_of_sale/report/pos_receipt.rml addons/point_of_sale/static/src/pos.css addons/point_of_sale/static/src/pos.xml

I've tried changing them all but NOTHING changes on the printed receipt, so frustrating.

Is there another file somewhere else I need to change??

Prajul P T
On 11/22/13, 12:33 AM

Hi, In point_of_sale module, in static > src > xml template named <t t-name="PosTicket"> is where we define the structure of the pos front end ticket and the value to populate the field is passed from static > src > js > pos.js. If you change in this xml file, it should effect the pos ticket. After making necessary changes in these file please refresh the browser. In some cases you might need to clear the browser cache....

Thank you, clearing the cache worked.

on 11/22/13, 1:44 AM

However, how do I get the shop address and the VAT number on the receipt?

on 11/22/13, 1:45 AM

In module point_of_sale static > src > js > model.js, we are fetching all the required data for pos. Datas from shop, warehouse, partner etc. are fetched from this file. So i think you could add you code to fetch the vat and shop address details in this file..

Zesty Beanz Technologies, Prajul P T
on 11/22/13, 2:11 AM

Perfect Prajul.

If anyone else stumbles across this in the future, I changed:

<div class="pos-right-align"><t t-esc="new Date().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' + Date.CultureInfo.formatPatterns.longTime)"/> <t t-esc="widget.currentOrder.attributes.name"/></div> <br /> <t t-esc="widget.company.name"/><br /> Phone: <t t-esc="widget.company.phone || ''"/><br /> User: <t t-esc="widget.user.name"/><br /> Shop: <t t-esc="widget.shop_obj.name"/><br />

on 11/22/13, 2:31 AM


        Address: <t t-esc="widget.company.contact_address"/><br />
    VAT: <t t-esc="widget.company.vat"/><br />

You can also change VAT to ABN or whatever your countries tax number abbreviation is.

Now, just need to find out how to add a logo!

on 11/22/13, 2:37 AM
On 8/4/14, 5:40 AM

Hi, I'm using pricelist in Openerp POS. I like to show both public price and discounted pricelist price in pos receipt. But currently only the pricelist price alone is displayed in the receipt. Only pricelist price is getting displayed, But the actual price is not displayed in receipt. I want customer to know that there are getting the product for discounted price. Any suggestion for this?


Ice Cream (Public Price): 10$

Ice Cream (Price List Price): 9$ (I want to give 10% discount)

In the receipt, price is displayed as just 9$ instead of Actual Price 10$, Discounted Price 9$.

M. Höppner
On 1/18/14, 3:30 PM

Image at POS receipt:

I copied an appropriate image via FileZilla into the right folder and added the following line to the pos.xml:

<img width="100"  hspace="20" src="/point_of_sale/static/src/img/logo200.png" />

That works fine for me. If you want to have you logo at the top of your paper, just add it after the following lines (you have to go down some lines...):

 <t t-name="PosTicket">
        <div class="pos-sale-ticket">
            <br />

Have fun

Jerry Bhattarai
On 12/20/17, 5:44 AM

@RisteKabranov is that option is available in odoo community version ? if yes please share the exact file to edit pos order bill receipt.


Riste Kabranov
On 5/31/17, 3:44 AM

Its in the Technical --> Views --> report_receipt. Change here anything that you want. cheers

On 1/19/17, 4:43 AM

is there a way to customize this in odoo reports? or you need to make those changes in the pos module?

And how can  I set this ticket to a format of A4 ? when I change the pos.xml it print all the same as before?

I want to print A4 FORMAT

Jairo Quezada
On 1/25/16, 12:26 PM

Helo, I need print in pos receipt the partner vat, how to declare <t t-esc> for this porpose?

Customer : <t t-esc="order.changed.client ? order.changed.client.name : 'Client Anyone'"/>

<br />

Customer VAT : <t t-esc="order.changed.client ? order.changed.client.vat : '999999999999999'"/>

<br />

Odoo Honduras
on 6/22/16, 9:51 PM

'Client Anyone' and '999999999999999' if need a generic client if no one selected.

Odoo Honduras
on 6/22/16, 9:53 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

4 follower(s)


Asked: 11/22/13, 12:23 AM
Seen: 23034 times
Last updated: 1/4/18, 7:16 PM