addons/pos_repair/static/src/overrides/models/pos_order_line.js
raw| 1 | import { PosOrderline } from "@point_of_sale/app/models/pos_order_line"; |
| 2 | import { patch } from "@web/core/utils/patch"; |
| 3 | |
| 4 | patch(PosOrderline.prototype, { |
| 5 | //@override |
| 6 | setQuantityFromSOL(saleOrderLine) { |
| 7 | if (this.sale_order_line_id.is_repair_line) { |
| 8 | this.setQuantity(saleOrderLine.product_uom_qty); |
| 9 | } else { |
| 10 | super.setQuantityFromSOL(...arguments); |
| 11 | } |
| 12 | }, |
| 13 | }); |