【问题标题】:how to add order name in pos receipt?如何在收据中添加订单名称?
【发布时间】:2012-08-22 08:13:12
【问题描述】:

我使用的是 openerp 6.1.1,在 web 客户端中,pos 收据没有 pos 订单号。收据在模块的 pos.xml 中定义。如何在 pos 后端调用相同的收据,或者如何在 web pos 收据中添加订单号?

【问题讨论】:

    标签: openerp


    【解决方案1】:

    从 Openerp 论坛我找到了答案。只需添加以下内容。 pos.xml 中的代码。

    <t t-esc="widget.currentOrder.getName()"/><br />
    

        <t t-name="pos-ticket">
        <div class="pos-sale-ticket">
        <div class="pos-right-align"><t t-esc="new Datee().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' +
    Date.CultureInfo.formatPatterns.longTime)"/></div>
        <br />
        <t t-esc="widget.company.name"/><br />
        Phone: <t t-esc="widget.company.phone || ''"/><br />
        User: <t t-esc="widget.user.name"/><br />
        Shop: <t t-esc="widget.shop_obj.name"/><br />
    

    【讨论】:

      【解决方案2】:

      在文件的pos-ticket对象中,添加:

      Order:<t t-esc="widget.currentOrder.getName()"/><br />
      

      然后重启服务器。

      【讨论】:

        【解决方案3】:

        对于 odoo8,正确的行是:&lt;t t-esc="widget.pos.get_client().name" /&gt;

        【讨论】:

          猜你喜欢
          • 2021-01-04
          • 1970-01-01
          • 1970-01-01
          • 2021-03-14
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2017-03-11
          • 1970-01-01
          相关资源
          最近更新 更多