How to add POS restaurant notes for each item to POS reciept restaurant?

I managed to change the template for POS reciept to /addons/point_of_sale/static/src/xml/pos.xml , which is inside:

<t t-name="PosTicket">

But how to change the details on PosTicket?

  <t t-name="PosTicket">

  .....

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

???

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

I tried to add

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

But it doesn't seem to work ... Does anyone know how to fix this?

PS: I already read:

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

Oduo point of sale + Posbox: how to change the receipt

Oduo point of sale + Posbox: how to change the receipt

Adding notes to order points in a restaurant POS

+4
source share
1 answer

I think I found the answer myself. It:

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

After changing pos.xml, logging out and logging back in to n, he will complete the task ... :)

+1
source

Source: https://habr.com/ru/post/1681711/


All Articles