Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
5 Răspunsuri
5077 Vizualizări

Based on

https://www.odoo.com/forum/help-1/question/how-to-alter-the-pos-receipt-37199

I manage to change the template for POS reciept on /addons/point_of_sale/static/src/xml/pos.xml which lies under <t t-name="PosTicket">

But how to change detail on PosTicket ?

  <t t-name="PosTicket">

  .....

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

 ???

I need to add the notes under the orderline.get_product().display_name. What should I write so it can show the notes ?

Imagine profil
Abandonează
Autor

I forget to mention that my Odoo's in Restorant mode...

Cel mai bun răspuns

Dear 


try this:

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

I hope I helped you.. 
Imagine profil
Abandonează
Autor

how to make the note become a new line (under the product) ?

Autor

find it, using <p> </p>. BTW thanks bro :)

Cel mai bun răspuns
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-extend="Orderline">
<t t-jquery="ul[class*='info-list']" t-operation="append">
<li class="info orderline-note">
<i class="fa fa-caret-right"/>
===your things===
</li>
</t>
</t>
</templates>
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
aug. 22
1979
1
sept. 25
3451
1
sept. 25
367
1
ian. 25
3123
0
dec. 24
18