跳至内容
菜单
此问题已终结
5 回复
4939 查看

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>
形象
丢弃
相关帖文 回复 查看 活动
2
8月 22
1880
1
8月 24
3142
1
9月 25
78
1
1月 25
2755
0
12月 24
18