【问题标题】:How to add POS Restaurant notes for every items into POS Restaurant reciept?如何将每件物品的 POS 餐厅备注添加到 POS 餐厅收据中?
【发布时间】:2017-12-23 11:57:20
【问题描述】:

我设法更改了 /addons/point_of_sale/static/src/xml/pos.xml 上的 POS 收据模板,该模板位于:

<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()" />

但它似乎不起作用......有人知道如何解决这个问题吗?

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

【问题讨论】:

    标签: odoo odoo-10 point-of-sale receipt


    【解决方案1】:

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

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

    修改 pos.xml 后,注销并重新登录它会完成这项工作... :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多