diff --git a/pos_mrp_order/__manifest__.py b/pos_mrp_order/__manifest__.py
index dc5bec886..c9cffc1c1 100644
--- a/pos_mrp_order/__manifest__.py
+++ b/pos_mrp_order/__manifest__.py
@@ -21,7 +21,7 @@
##############################################################################
{
'name': 'Make MRP Orders from POS',
- 'version': '18.0.1.0.0',
+ 'version': '18.0.1.1.0',
'category': 'Point of Sale',
'summary': """Generate Automatic MRP orders from POS.""",
'description': """This module enables to create automatic MRP orders after
diff --git a/pos_mrp_order/doc/RELEASE_NOTES.md b/pos_mrp_order/doc/RELEASE_NOTES.md
index 248b7882d..10d44bdcb 100644
--- a/pos_mrp_order/doc/RELEASE_NOTES.md
+++ b/pos_mrp_order/doc/RELEASE_NOTES.md
@@ -4,3 +4,8 @@
#### Version 18.0.1.0.0
##### ADD
- Initial commit for Make MRP Orders from POS
+
+#### 12.11.2025
+#### Version 18.0.1.1.0
+##### ADD
+- Commit for MRP order not created when creating an order from POS
\ No newline at end of file
diff --git a/pos_mrp_order/models/mrp_production.py b/pos_mrp_order/models/mrp_production.py
index bb09880b5..5d5c53eed 100644
--- a/pos_mrp_order/models/mrp_production.py
+++ b/pos_mrp_order/models/mrp_production.py
@@ -45,11 +45,12 @@ class MrpProduction(models.Model):
product_ids.append(product)
for prod in product_ids:
if prod['qty'] > 0:
+ product_template_id = self.env['product.product'].browse(prod['id']).product_tmpl_id.id
bom_count = self.env['mrp.bom'].search([
- ('product_id', '=', prod['id'])])
+ ('product_tmpl_id', '=',product_template_id)])
if bom_count:
bom_temp = self.env['mrp.bom'].search([
- ('product_id', '=', prod['id']),
+ ('product_tmpl_id', '=', product_template_id),
('product_id', '=', False)])
bom_prod = self.env['mrp.bom'].search([
('product_id', '=', prod['id'])])
@@ -63,6 +64,7 @@ class MrpProduction(models.Model):
vals = {
'origin': 'POS-' + prod['pos_reference'],
'state': 'confirmed',
+ 'product_tmpl_id': product_template_id,
'product_id': prod['id'],
'product_uom_id': prod['uom_id'],
'product_qty': prod['qty'],
@@ -76,7 +78,7 @@ class MrpProduction(models.Model):
'name': mrp_order.name,
'product_id': bom_line.product_id.id,
'product_uom': bom_line.product_uom_id.id,
- 'product_uom_qty': (bom_line.product_qty * mrp_order.product_qty)/self.env['mrp.bom'].search([("product_id", "=", prod['id'])]).product_qty,
+ 'product_uom_qty': (bom_line.product_qty * mrp_order.product_qty)/self.env['mrp.bom'].search([("product_tmpl_id", "=", product_template_id)]).product_qty,
'picking_type_id': mrp_order.picking_type_id.id,
'location_id': mrp_order.location_src_id.id,
'location_dest_id': bom_line.product_id.with_company(self.company_id.id).property_stock_production.id,
diff --git a/pos_mrp_order/static/description/index.html b/pos_mrp_order/static/description/index.html
index a61348325..bcbf999ae 100644
--- a/pos_mrp_order/static/description/index.html
+++ b/pos_mrp_order/static/description/index.html
@@ -165,7 +165,29 @@
>Email Us
-
+
+
+ Skype Us
+