diff options
| author | Christophe Simonis <chs@odoo.com> | 2014-09-05 15:28:22 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2014-09-05 15:28:22 +0200 |
| commit | 31bf30d2d0eb78baaa36360b99fe58bf7cd4c9e7 (patch) | |
| tree | d7be61ecd6bb4c8b5552e39b03e2a64eebbbf323 /addons/pos_restaurant/static/src/xml/splitbill.xml | |
| parent | afba9e8817c458640ae446ac7aaaab79be4fe1e9 (diff) | |
| parent | ed1c173971968eaa96693cb4e1547efa6e6c34e0 (diff) | |
[MERGE] forward port of branch 8.0 up to ed1c173
Diffstat (limited to 'addons/pos_restaurant/static/src/xml/splitbill.xml')
| -rw-r--r-- | addons/pos_restaurant/static/src/xml/splitbill.xml | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/addons/pos_restaurant/static/src/xml/splitbill.xml b/addons/pos_restaurant/static/src/xml/splitbill.xml new file mode 100644 index 00000000000..d56f01aaa9b --- /dev/null +++ b/addons/pos_restaurant/static/src/xml/splitbill.xml @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates id="template" xml:space="preserve"> + + <t t-name="SplitbillButton"> + <span class="control-button order-split"> + <i class="fa fa-copy"></i> + Split + </span> + </t> + + <t t-name="SplitOrderline"> + + <li t-attf-class="orderline #{ selected ? 'selected' : ''} #{ quantity !== line.get_quantity() ? 'partially' : '' }" + t-att-data-id="id"> + <span class="product-name"> + <t t-esc="line.get_product().name"/> + </span> + <span class="price"> + <t t-esc="widget.format_currency(line.get_display_price())"/> + </span> + <ul class="info-list"> + <t t-if="line.get_quantity_str() !== '1'"> + <li class="info"> + <t t-if='selected and line.get_unit().groupable'> + <em class='big'> + <t t-esc='quantity' /> + </em> + / + <t t-esc="line.get_quantity_str()" /> + </t> + <t t-if='!(selected and line.get_unit().groupable)'> + <em> + <t t-esc="line.get_quantity_str()" /> + </em> + </t> + <t t-esc="line.get_unit().name" /> + at + <t t-esc="widget.format_currency(line.get_unit_price())" /> + / + <t t-esc="line.get_unit().name" /> + </li> + </t> + <t t-if="line.get_discount_str() !== '0'"> + <li class="info"> + With a + <em> + <t t-esc="line.get_discount_str()" />% + </em> + discount + </li> + </t> + </ul> + </li> + </t> + + <t t-name="SplitbillScreenWidget"> + <div class='splitbill-screen screen'> + <div class='screen-content'> + <div class='top-content'> + <span class='button back'> + <i class='fa fa-angle-double-left'></i> + Back + </span> + <h1>Bill Splitting</h1> + </div> + <div class='left-content touch-scrollable scrollable-y'> + <div class='order'> + <ul class='orderlines'> + </ul> + </div> + </div> + <div class='right-content touch-scrollable scrollable-y'> + <div class='order-info'> + <span class='subtotal'><t t-esc='widget.format_currency(0.0)'/></span> + </div> + <div class='paymentmethods'> + <t t-foreach="widget.pos.cashregisters" t-as="cashregister"> + <div class='button paymentmethod' t-att-data-id="cashregister.id"> + <t t-esc='cashregister.journal.name' /> + </div> + </t> + </div> + </div> + </div> + </div> + </t> + +</templates> |
