Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
5068 Lượt xem

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 ?

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

Dear 


try this:

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

I hope I helped you.. 
Ảnh đại diện
Huỷ bỏ
Tác giả

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

Tác giả

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

Câu trả lời hay nhất
<?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>
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 22
1969
1
thg 9 25
3420
1
thg 9 25
357
1
thg 1 25
3102
0
thg 12 24
18