[11.0][MIG] mrp_multi_level: open MRP inventory screen if manually run

This commit is contained in:
Lois Rilo
2019-07-15 17:19:16 +02:00
committed by davidborromeo
parent 6f059823a3
commit a2ae8dc066

View File

@@ -767,3 +767,7 @@ class MultiLevelMrp(models.TransientModel):
self._mrp_initialisation(self.mrp_area_ids)
self._mrp_calculation(mrp_lowest_llc, self.mrp_area_ids)
self._mrp_final_process(self.mrp_area_ids)
# Open MRP inventory screen to show result if manually run:
action = self.env.ref("mrp_multi_level.mrp_inventory_action")
result = action.read()[0]
return result