[MIG] mrp_multi_level: finish migration of test

This commit is contained in:
Lois Rilo
2021-03-11 12:34:04 +01:00
parent 7629759536
commit 1cdeed4db7
2 changed files with 17 additions and 16 deletions

View File

@@ -735,6 +735,7 @@ class MultiLevelMrp(models.TransientModel):
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:
# Done as sudo to allow non-admin users to read the action.
action = self.env.ref("mrp_multi_level.mrp_inventory_action")
result = action.read()[0]
result = action.sudo().read()[0]
return result