| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | |
| 4 | <template id="sale_order_portal_optional_product_quantity" name="Order Quantity"> |
| 5 | <div t-if="line._can_be_edited_on_portal()" class="d-inline-flex"> |
| 6 | <div class="input-group js_quantity_container pull-right"> |
| 7 | <span class="d-print-none input-group-text d-none d-md-inline-block"> |
| 8 | <a |
| 9 | title="Remove one" |
| 10 | aria-label="Remove one" |
| 11 | href="#" |
| 12 | t-att-class="'opacity-50' if line.product_uom_qty == 0 else 'js_update_line_json'" |
| 13 | t-att-data-line-id="line.id" |
| 14 | t-att-data-remove="True" |
| 15 | > |
| 16 | <span class="fa fa-minus"/> |
| 17 | </a> |
| 18 | </span> |
| 19 | <input |
| 20 | type="text" |
| 21 | class="js_quantity form-control" |
| 22 | t-att-data-line-id="line.id" |
| 23 | t-att-value="int(line.product_uom_qty) or '0'" |
| 24 | /> |
| 25 | <span class="d-print-none input-group-text d-none d-md-inline-block"> |
| 26 | <a |
| 27 | title="Add one" |
| 28 | aria-label="Add one" |
| 29 | class="js_update_line_json" |
| 30 | href="#" |
| 31 | t-att-data-line-id="line.id" |
| 32 | > |
| 33 | <span class="fa fa-plus"/> |
| 34 | </a> |
| 35 | </span> |
| 36 | </div> |
| 37 | <div class="ms-1 align-self-center"> |
| 38 | <span t-field="line.product_uom_id"/> |
| 39 | </div> |
| 40 | </div> |
| 41 | <div t-else=""> |
| 42 | <span t-field="line.product_uom_qty"/> |
| 43 | <span t-field="line.product_uom_id"/> |
| 44 | </div> |
| 45 | </template> |
| 46 | |
| 47 | <template id="sale_order_portal_content_inherit_sale_management" name="Order Options" inherit_id="sale.sale_order_portal_content"> |
| 48 | <xpath expr="//td[@name='td_product_quantity']/div[@id='quote_qty']" position="replace"> |
| 49 | <t t-call="sale_management.sale_order_portal_optional_product_quantity"/> |
| 50 | </xpath> |
| 51 | <xpath expr="//td[@name='td_combo_quantity']/div[@id='quote_qty']" position="replace"> |
| 52 | <t t-call="sale_management.sale_order_portal_optional_product_quantity"/> |
| 53 | </xpath> |
| 54 | </template> |
| 55 | |
| 56 | </odoo> |