mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[14.0][MIG] rma*: ir.actions.act_window has different access
right in v14. Actions that read those records need to use `sudo` to allow non-admin users to be able to use these actions.
This commit is contained in:
committed by
Jordi Ballester Alomar
parent
7892cab9e8
commit
5f0652a09d
@@ -213,7 +213,7 @@ class RmaOrderLine(models.Model):
|
||||
|
||||
def action_view_purchase_order(self):
|
||||
action = self.env.ref("purchase.purchase_rfq")
|
||||
result = action.read()[0]
|
||||
result = action.sudo().read()[0]
|
||||
orders = self.mapped("purchase_order_line_ids.order_id")
|
||||
result["domain"] = [("id", "in", orders.ids)]
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user