[14.0][FIX] stock_request, window action access error

This commit is contained in:
Kitti U
2021-04-25 18:13:10 +07:00
committed by Bernat Puig Font
parent 4bb9b34ccb
commit b89e8ab4e5
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
{
"name": "Stock Request",
"summary": "Internal request for stock",
"version": "14.0.1.0.0",
"version": "14.0.1.0.1",
"license": "LGPL-3",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"author": "ForgeFlow, Odoo Community Association (OCA)",

View File

@@ -248,7 +248,7 @@ class StockRequestOrder(models.Model):
return
def action_view_transfer(self):
action = self.env.ref("stock.action_picking_tree_all").read()[0]
action = self.env.ref("stock.action_picking_tree_all").sudo().read()[0]
pickings = self.mapped("picking_ids")
if len(pickings) > 1: