2017-07-18 32 views
4

我设法改变POS收据模板上/addons/point_of_sale/static/src/xml/pos.xml它位于内:如何将POS餐厅备注添加到POS Restaurant reciept中?

<t t-name="PosTicket"> 

但如何在PosTicket改变的细节?

<t t-name="PosTicket"> 

    ..... 

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

???

我需要在orderline.get_product()。display_name下添加注释。我应该写什么才能显示注释?

我尝试添加

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

但似乎不工作... Anybodyknow如何解决这一问题?

PS: 我已阅读:

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

Odoo Point of Sale + Posbox : How to modify receipt

Odoo Point of Sale + Posbox : How to modify receipt

Adding notes to order items in restaurant POS

回答

1

我似乎找到了答案我自己。它是:

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

修改后的pos.xml,注销并重新登录ñ它会做的工作... :)