Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
5 Відповіді
4935 Переглядів

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 ?

Аватар
Відмінити
Автор

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

Найкраща відповідь

Dear 


try this:

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

I hope I helped you.. 
Аватар
Відмінити
Автор

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

Автор

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

Найкраща відповідь
<?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>
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
серп. 22
1880
1
серп. 24
3135
1
вер. 25
75
Odoo 18 - Notes module Вирішено
1
січ. 25
2749
0
груд. 24
18