mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] set UoM values from wizard line UoM
This commit is contained in:
@@ -24,14 +24,6 @@ class StockWarehouseOrderpoint(models.Model):
|
||||
compute="_compute_procure_recommended",
|
||||
)
|
||||
|
||||
def _prepare_procurement_values(self, product_qty, date=False,
|
||||
group=False):
|
||||
res = super(StockWarehouseOrderpoint,
|
||||
self)._prepare_procurement_values(product_qty, date=date,
|
||||
group=group)
|
||||
res.update({'qty': product_qty})
|
||||
return res
|
||||
|
||||
@api.multi
|
||||
def _get_procure_recommended_qty(self, virtual_qty, op_qtys):
|
||||
self.ensure_one()
|
||||
|
||||
@@ -71,7 +71,7 @@ class MakeProcurementOrderpoint(models.TransientModel):
|
||||
self.env['procurement.group'].run(
|
||||
item.orderpoint_id.product_id,
|
||||
item.qty,
|
||||
item.orderpoint_id.product_uom,
|
||||
item.uom_id,
|
||||
item.orderpoint_id.location_id,
|
||||
item.orderpoint_id.name,
|
||||
item.orderpoint_id.name,
|
||||
|
||||
Reference in New Issue
Block a user