From 0de10e26adddcb392ee5548a6be466b1ca5be612 Mon Sep 17 00:00:00 2001 From: Arnaud Pineux Date: Fri, 3 Feb 2023 14:21:22 +0100 Subject: [PATCH] [FIX] pos_product_pack: pack_line_id should be loaded at initialization --- pos_product_pack/static/src/js/models.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pos_product_pack/static/src/js/models.js b/pos_product_pack/static/src/js/models.js index e84ac677..4a5df469 100644 --- a/pos_product_pack/static/src/js/models.js +++ b/pos_product_pack/static/src/js/models.js @@ -204,6 +204,9 @@ odoo.define("pos_product_pack.models", function (require) { json.pack_parent_line_id ); } + if (json.pack_line_id) { + this.pack_line_id = this.pos.product_pack_line_by_id[json.pack_line_id]; + } if (json.pack_child_line_ids) { var pack_child_line_ids = json.pack_child_line_ids; this.pack_child_line_ids = [];