[FIX] point_of_sale: wrong empty attribute

`currentOrder` does not exist in the `Product` model

closes odoo/odoo#114768

Signed-off-by: Samuel Degueldre <sad@odoo.com>
This commit is contained in:
Jacky (trj)
2023-03-09 14:43:59 +01:00
parent b3826bca96
commit da9288c1c5
+1 -1
View File
@@ -1521,7 +1521,7 @@ export class Product extends PosModel {
if (isAllowOnlyOneLot) {
packLotLinesToEdit = [];
} else {
const orderline = this.currentOrder
const orderline = this.pos.selectedOrder
.get_orderlines()
.filter((line) => !line.get_discount())
.find((line) => line.product.id === this.id);