[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:
Lois Rilo
2021-04-16 13:07:38 +02:00
committed by Jordi Ballester Alomar
parent 7892cab9e8
commit 5f0652a09d
4 changed files with 5 additions and 5 deletions

View File

@@ -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