[FIX] pos_self_order: no order history orderline interaction

It's no longer necessary to interact with the orderlines in the order history
because it's showing already paid orders.

closes odoo/odoo#140754

Signed-off-by: David Monnom (moda) <moda@odoo.com>
This commit is contained in:
Joseph Caburnay
2023-11-03 10:46:10 +00:00
parent fd7afa25f0
commit aed96056cd
2 changed files with 0 additions and 13 deletions
@@ -36,18 +36,6 @@ export class OrdersHistoryPage extends Component {
: line.price_subtotal;
}
clickOnLine(order, line) {
this.selfOrder.editedLine = line;
if (order.state === "draft") {
this.selfOrder.editedOrder = order;
this.router.navigate("product", { id: line.product_id });
} else {
this.selfOrder.notification.add(_t("You cannot edit an posted order!"), {
type: "danger",
});
}
}
getOrderState(state) {
return state === "draft" ? _t("Current") : state;
}
@@ -36,7 +36,6 @@
t-as="line"
t-key="line.uuid"
t-attf-class="o_self_order_item_card position-relative d-flex align-items-start w-100 px-3 overflow-hidden"
t-on-click="() => this.clickOnLine(order, line)"
>
<div class="d-flex w-100 py-1 justify-content-between">
<div t-attf-class="d-flex {{ line.qty ? 'flex-column align-items-start' : 'flex-row align-items-center' }} text-900 fw-bold fs-6">