[14.0][FIX] rma_sale, fix action permission issues.

This commit is contained in:
Giovanni
2022-04-26 16:36:50 +02:00
committed by Nikolaus Weingartmair
parent a6f06c9e06
commit 07838b0d4e
2 changed files with 2 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ class StockPicking(models.Model):
def action_view_rma(self):
self.ensure_one()
action = self.env.ref("rma.rma_action").read()[0]
action = self.sudo().env.ref("rma.rma_action").read()[0]
rma = self.move_lines.mapped("rma_ids")
if len(rma) == 1:
action.update(

View File

@@ -5,3 +5,4 @@
* David Vidal
* Chafique Delli <chafique.delli@akretion.com>
* Giovanni Serra - Ooops <giovanni@ooops404.com>