mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[11.0][FIX] stock_orderpoint_manual_procurement: readd date_planned to wizard.
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<field name="qty"/>
|
||||
<field name="qty_without_security" invisible="1"/>
|
||||
<field name="uom_id" groups="product.group_uom"/>
|
||||
<field name="date_planned"/>
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
@@ -56,6 +57,7 @@
|
||||
<field name="qty" invisible="1"/>
|
||||
<field name="qty_without_security" readonly="1"/>
|
||||
<field name="uom_id" groups="product.group_uom"/>
|
||||
<field name="date_planned"/>
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user