From ec5944dafbef8fbcff9041932df8ce4092306f7c Mon Sep 17 00:00:00 2001 From: RisvanaCybro Date: Mon, 10 Jun 2024 21:19:45 +0530 Subject: [PATCH] Jun 10: [FIX] Bug Fixed 'product_multi_uom_pos' --- product_multi_uom_pos/doc/RELEASE_NOTES.md | 7 ++++++- product_multi_uom_pos/models/product_template.py | 1 - product_multi_uom_pos/models/stock_picking.py | 12 ------------ .../static/src/overrides/models/orderline.js | 2 +- 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/product_multi_uom_pos/doc/RELEASE_NOTES.md b/product_multi_uom_pos/doc/RELEASE_NOTES.md index 0eecf031d..42fdc0514 100644 --- a/product_multi_uom_pos/doc/RELEASE_NOTES.md +++ b/product_multi_uom_pos/doc/RELEASE_NOTES.md @@ -8,4 +8,9 @@ #### 9.05.2024 #### Version 17.0.1.0.1 ##### UPDT -- Bug Fix-Resolved the issue in the refund page. \ No newline at end of file +- Bug Fix-Resolved the issue in the refund page. + +#### 13.06.2024 +#### Version 17.0.1.0.1 +##### UPDT +- Bug Fix-Resolved the issue in the picking \ No newline at end of file diff --git a/product_multi_uom_pos/models/product_template.py b/product_multi_uom_pos/models/product_template.py index 15fbcf4be..c46465dad 100644 --- a/product_multi_uom_pos/models/product_template.py +++ b/product_multi_uom_pos/models/product_template.py @@ -43,7 +43,6 @@ class ProductTemplate(models.Model): """ status = self.env['ir.config_parameter'].sudo().get_param( 'product_multi_uom_pos.pos_multi_uom') - print(status,'status') self.write({ 'multi_uom': status }) diff --git a/product_multi_uom_pos/models/stock_picking.py b/product_multi_uom_pos/models/stock_picking.py index c20cdd72f..364d70034 100644 --- a/product_multi_uom_pos/models/stock_picking.py +++ b/product_multi_uom_pos/models/stock_picking.py @@ -45,15 +45,3 @@ class StockPicking(models.Model): 'location_dest_id': self.location_dest_id.id, 'company_id': self.company_id.id, } - - def _create_move_from_pos_order_lines(self, lines): - """Creates individual stock move lines for each sale order line""" - self.ensure_one() - move_vals = [] - for line in lines: - order_lines = self.env['pos.order.line'].concat(line) - move_vals.append( - self._prepare_stock_move_vals(order_lines[0], order_lines)) - moves = self.env['stock.move'].create(move_vals) - confirmed_moves = moves._action_confirm() - confirmed_moves._add_mls_related_to_order(lines, are_qties_done=True) diff --git a/product_multi_uom_pos/static/src/overrides/models/orderline.js b/product_multi_uom_pos/static/src/overrides/models/orderline.js index 0b381a598..e2673e37c 100644 --- a/product_multi_uom_pos/static/src/overrides/models/orderline.js +++ b/product_multi_uom_pos/static/src/overrides/models/orderline.js @@ -51,7 +51,7 @@ patch(Orderline.prototype, { const currentOrder = this.env.services.pos.get_order(); currentOrder.selected_orderline.set_uom({0:uomId,1:uomName}) // Set the price_manually_set flag to indicate that the price was manually set - currentOrder.selected_orderline.price_manually_set = true; + currentOrder.selected_orderline.price_type = "manual"; // Set the unit price of selected UoM on the order line currentOrder.selected_orderline.set_unit_price(price); },