odoo-addons/pos_edit_order_line/static/src/xml/EditOrderLineInput.xml

40 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<templates id="template" xml:space="preserve">
<t t-name="EditOrderLineInput" owl="1">
<tr t-attf-class="order-line" t-att-data-id="props.item.id">
<td>
<t t-esc="props.item.name" />
</td>
<td>
<input
t-model="state.quantityInput"
t-on-change="onChange"
type="number"
name="quantity"
/>
</td>
<td>
<t t-esc="props.item.uom" />
</td>
<td>
<input
t-model="state.priceInput"
t-on-change="onChange"
type="number"
name="price"
/>
</td>
<td t-if="env.pos.config.manual_discount">
<input
t-model="state.discountInput"
t-on-change="onChange"
type="number"
name="discount"
/>
</td>
</tr>
</t>
</templates>