From 8ee81ffb7a7226fff3b300c12b96d93392ac825c Mon Sep 17 00:00:00 2001 From: Giovanni Date: Tue, 26 Apr 2022 16:50:19 +0200 Subject: [PATCH] [14.0][FIX] rma, fix permission for action --- rma/README.rst | 1 + rma/__manifest__.py | 2 +- rma/models/res_partner.py | 2 +- rma/static/description/index.html | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rma/README.rst b/rma/README.rst index 4361cc0a..5fa89305 100644 --- a/rma/README.rst +++ b/rma/README.rst @@ -152,6 +152,7 @@ Contributors * David Vidal * Chafique Delli +* Giovanni Serra - Ooops Maintainers ~~~~~~~~~~~ diff --git a/rma/__manifest__.py b/rma/__manifest__.py index 0cb14a17..02115225 100644 --- a/rma/__manifest__.py +++ b/rma/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Return Merchandise Authorization Management", "summary": "Return Merchandise Authorization (RMA)", - "version": "14.0.2.1.0", + "version": "14.0.2.2.0", "development_status": "Production/Stable", "category": "RMA", "website": "https://github.com/OCA/rma", diff --git a/rma/models/res_partner.py b/rma/models/res_partner.py index d6bed155..e300f6b8 100644 --- a/rma/models/res_partner.py +++ b/rma/models/res_partner.py @@ -27,7 +27,7 @@ class ResPartner(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( diff --git a/rma/static/description/index.html b/rma/static/description/index.html index a14bb780..c2e50115 100644 --- a/rma/static/description/index.html +++ b/rma/static/description/index.html @@ -508,6 +508,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
  • Chafique Delli <chafique.delli@akretion.com>
  • +
  • Giovanni Serra - Ooops <giovanni@ooops404.com>