diff --git a/stock_orderpoint_manual_procurement/__manifest__.py b/stock_orderpoint_manual_procurement/__manifest__.py index e3da69981..c493fc593 100644 --- a/stock_orderpoint_manual_procurement/__manifest__.py +++ b/stock_orderpoint_manual_procurement/__manifest__.py @@ -6,7 +6,7 @@ "name": "Stock Orderpoint Manual Procurement", "summary": "Allows to create procurement orders from orderpoints instead " "of relying only on the scheduler.", - "version": "11.0.1.0.0", + "version": "11.0.1.1.0", "author": "Eficent, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", diff --git a/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py b/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py index c8ba93288..d786ef650 100644 --- a/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py +++ b/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py @@ -20,6 +20,7 @@ class MakeProcurementOrderpoint(models.TransientModel): 'qty': orderpoint.procure_recommended_qty, 'qty_without_security': orderpoint.procure_recommended_qty, 'uom_id': orderpoint.product_uom.id, + 'date_planned': orderpoint.procure_recommended_date, # string 'orderpoint_id': orderpoint.id, 'product_id': orderpoint.product_id.id, 'warehouse_id': orderpoint.warehouse_id.id, @@ -66,6 +67,7 @@ class MakeProcurementOrderpoint(models.TransientModel): if not item.orderpoint_id: raise ValidationError(_("No reordering rule found!")) values = item.orderpoint_id._prepare_procurement_values(item.qty) + values['date_planned'] = item.date_planned # Run procurement try: self.env['procurement.group'].run( diff --git a/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint_view.xml b/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint_view.xml index be85ec02e..ef7a645fa 100644 --- a/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint_view.xml +++ b/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint_view.xml @@ -23,6 +23,7 @@ + @@ -56,6 +57,7 @@ +