Reputation: 116
I'm using openerp 6.1.1 and in the web client, the pos receipt doesn't have the pos order number. The receipt is defined in pos.xml in the module. How to call the same receipt in pos backend or how could i add the order no: in the web pos receipt?
Upvotes: 4
Views: 2645
Reputation: 26
for odoo8 the correct line is: <t t-esc="widget.pos.get_client().name" />
Upvotes: 0
Reputation: 53
In the pos-ticket object in the file, add:
Order:<t t-esc="widget.currentOrder.getName()"/><br />
Then restart the server.
Upvotes: 1
Reputation: 116
From Openerp forum i've found an answer. just add the foll. code in pos.xml.
<t t-esc="widget.currentOrder.getName()"/><br />
under
<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 />
Upvotes: 1