Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

How to alter the POS receipt?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
posreceipt
14 Respostes
64242 Vistes
Avatar
Frankl

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??

3
Avatar
Descartar
Avatar
Prajul P T
Best Answer

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....

6
Avatar
Descartar
Frankl
Autor

Thank you, clearing the cache worked.

Frankl
Autor

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

Prajul P T

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..

Frankl
Autor

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 />

Frankl
Autor

added

        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!

Avatar
M. Höppner
Best Answer

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

1
Avatar
Descartar
Avatar
Divya
Best Answer

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?

Example:

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$.

1
Avatar
Descartar
Avatar
wizardz
Best Answer

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

0
Avatar
Descartar
Avatar
Jairo Quezada
Best Answer

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

0
Avatar
Descartar
Odoo Honduras

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

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

Avatar
Jerry Bhattarai
Best Answer

To edit POS Receipt/Bill Goto Odoo : C:\Program Files (x86)\Odoo 12.0\server\odoo\addons\point_of_sale\static\src\xml\pos.xml

Open pos.xml and place following code in receipt-orderlines class

 <table class='receipt-orderlines'>

                <colgroup>

                    <col width='50%' />

                    <col width='20%' />

                    <col width='15%' />

                    <col width='30%' />

                </colgroup>



                <tr>

                    <th>Item Name</th>

                    <th colspan="2">Rate X Qty</th>

                    <th colspan="3">Amount(NPR)</th>

                    <th colspan="4"></th>       

                </tr>



                <tr t-foreach="orderlines" t-as="orderline">

                    <td>

                        <t t-esc="orderline.get_product().display_name"/>

                         <t t-if="orderline.get_discount() > 0">

                            <div class="pos-disc-font">

                                With a <t t-esc="orderline.get_discount()"/>% discount

                            </div>

                        </t>

                    </td>



                    <td class="pos-left-align">

                        <t t-esc="orderline.get_unit_display_price()"/>

                    </td>


                    <td class="pos-center-align">                                                                        

                        <t t-esc="orderline.get_quantity_str_with_unit()"/>                        

                    </td>


                    <td class="pos-center-align">

                        <t t-esc="orderline.get_display_price()"/>

                    </td>

                </tr>

                

            </table>

Output : Please refer attached image

 

Best,

Ram
0
Avatar
Descartar
Avatar
Riste Kabranov
Best Answer

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

-3
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Custom Pos Receipt
pos receipt
Avatar
Avatar
1
de des. 24
3050
Pos Receipt
pos receipt
Avatar
0
d’ag. 24
2386
Can you customize Pos receipt via studio? Solved
pos receipt
Avatar
Avatar
1
d’ag. 24
3716
How to add index to each order line in POS receipt?
pos receipt
Avatar
0
de jul. 24
2211
Generate receipt in POS as Text
pos receipt
Avatar
0
d’oct. 25
3014
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now