2012-08-22 21 views
4

我使用的是openerp 6.1.1,在web客戶端中,pos收據沒有pos訂單號。收據在模塊的pos.xml中定義。如何在pos後端調用相同的收據,或者如何在Web pos收據中添加訂單號:?如何在pos收據中添加訂單名稱?

回答

1

從Openerp論壇我找到了答案。只需添加foll。 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 /> 
1

在文件中的POS-票據對象,添加:

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

然後重新啓動服務器。

0

爲odoo8正確的路線是:<t t-esc="widget.pos.get_client().name" />

相關問題