Browse Source

Jun 10: [FIX] Bug Fixed 'product_multi_uom_pos'

pull/331/head
RisvanaCybro 11 months ago
parent
commit
ec5944dafb
  1. 7
      product_multi_uom_pos/doc/RELEASE_NOTES.md
  2. 1
      product_multi_uom_pos/models/product_template.py
  3. 12
      product_multi_uom_pos/models/stock_picking.py
  4. 2
      product_multi_uom_pos/static/src/overrides/models/orderline.js

7
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.
- 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

1
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
})

12
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)

2
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);
},

Loading…
Cancel
Save