odoo-addons/simplified_pos/static/src/xml/ProductScreen.xml

80 lines
3.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<!-- Inherit ProductScreen to Modify it -->
<t t-name="ProductScreen" t-inherit="point_of_sale.ProductScreen"
t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('product-screen')]" position="replace">
<div class="leftpane pane-border">
<OrderWidget/>
<NumpadWidget activeMode="env.pos.numpadMode"/>
</div>
<div class="right">
<div class="head"><center><h2>CUSTOMER</h2></center></div>
<br/>
<br/>
<t t-call="CustomerDetails"/>
<br/>
<br/>
<center>
<button class="customer-button"
t-on-click="customerdetails">
<i class="fa fa-search"/>
</button>
</center>
<div class="button nextorder validation"
t-att-class="{ highlight: !locked }"
t-on-click="orderDone" style="background:#39B8B8;">
<div class="pay-circle">
<i class="fa fa-chevron-right" role="img"
aria-label="Pay" title="Pay"/>
</div>
New Order
</div>
</div>
<div class="center">
<section class="paymentlines-container">
<PaymentScreenStatus order="currentOrder"/>
</section>
<div class="paymentmethods-container">
<div class="paymentmethods">
<p class="title-category">Payment method</p>
<t t-foreach="this.env.pos.payment_methods"
t-as="paymentMethod"
t-key="paymentMethod.id">
<div class="button paymentmethod"
t-on-click="() => this.trigger('new-payment-line', paymentMethod)">
<div class="payment-name">
<t t-esc="paymentMethod.name"/>
</div>
</div>
</t>
<PaymentScreenPaymentLines
paymentLines="paymentLines"/>
</div>
</div>
<div class="button next validation"
t-on-click="() => this.trigger('confirm-order')">
<div class="pay-circle">
<i class="fa fa-chevron-right" role="img"
aria-label="Pay" title="Pay"/>
</div>
<span class="next_text">Validate</span>
</div>
</div>
</xpath>
</t>
<t t-name="CustomerDetails" owl="1">
<div class="_o_customer">
<t t-if="this.get_partner()">
<h4>Name:</h4>
<t t-esc="this.get_partner().name"/>
<h4>Address:</h4>
<t t-esc="this.get_partner().address"/>
<h4>Email:</h4>
<t t-esc="this.get_partner().email"/>
<h4>Phone:</h4>
<t t-esc="this.get_partner().phone"/>
</t>
</div>
</t>
</templates>