[FIX] pos_restaurant: QWEB receipt header / footers are now working for bills. Use receipt.bill in the templates for custom behaviour in bills
This commit is contained in:
committed by
Frédéric van der Essen
parent
a8154a5fe9
commit
8c11594497
@@ -14,8 +14,9 @@ function openerp_restaurant_printbill(instance,module){
|
||||
var order = self.pos.get('selectedOrder');
|
||||
if(order.get('orderLines').models.length > 0){
|
||||
var receipt = order.export_for_printing();
|
||||
receipt.bill = true;
|
||||
self.pos.proxy.print_receipt(QWeb.render('BillReceipt',{
|
||||
receipt: receipt, widget: self,
|
||||
receipt: receipt, widget: self, pos: self.pos, order: order,
|
||||
}));
|
||||
}
|
||||
});
|
||||
|
||||
@@ -124,9 +124,13 @@
|
||||
</t>
|
||||
|
||||
<!-- Footer -->
|
||||
<t t-if='receipt.footer'>
|
||||
<t t-if='receipt.footer_xml'>
|
||||
<t t-raw='receipt.footer_xml' />
|
||||
</t>
|
||||
|
||||
<t t-if='!receipt.footer_xml and receipt.footer'>
|
||||
<br/>
|
||||
<pre><t t-esc='receipt.footer' /></pre>
|
||||
<t t-esc='receipt.footer' />
|
||||
<br/>
|
||||
<br/>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user