From 97ca3d86257c3c28ce56e51e333ac397548c60ef Mon Sep 17 00:00:00 2001 From: yostashiro Date: Mon, 16 Mar 2026 03:02:05 +0000 Subject: [PATCH] [6505][FIX] stock_outgoing_shipment_report: Fix access error for stock users Replace env.ref().read()[0] with _for_xml_id() to avoid ACL check on ir.actions.act_window. --- stock_outgoing_shipment_report/models/stock_picking.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stock_outgoing_shipment_report/models/stock_picking.py b/stock_outgoing_shipment_report/models/stock_picking.py index 25e268b5..dcf21813 100644 --- a/stock_outgoing_shipment_report/models/stock_picking.py +++ b/stock_outgoing_shipment_report/models/stock_picking.py @@ -36,6 +36,6 @@ def generate_stock_outgoing_shipment_report(self): vals.update(partner_vals) move_rec = report_obj.search([("move_id", "=", move.id)]) move_rec.write(vals) if move_rec else report_obj.create(vals) - return self.env.ref( + return self.env["ir.actions.act_window"]._for_xml_id( "stock_outgoing_shipment_report.action_stock_outgoing_shipment_report" - ).read()[0] + )