[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 Pedro M. Baeza
parent 66b7959196
commit be17d76c82
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>