[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 Alex Vining
parent 995d3978c4
commit 939f528f02
2 changed files with 2 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ class SaleOrder(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.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>