mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[14.0][FIX] rma, fix permission for action
This commit is contained in:
committed by
Víctor Martínez
parent
c135b89b40
commit
8ee81ffb7a
@@ -152,6 +152,7 @@ Contributors
|
|||||||
* David Vidal
|
* David Vidal
|
||||||
|
|
||||||
* Chafique Delli <chafique.delli@akretion.com>
|
* Chafique Delli <chafique.delli@akretion.com>
|
||||||
|
* Giovanni Serra - Ooops <giovanni@ooops404.com>
|
||||||
|
|
||||||
Maintainers
|
Maintainers
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Return Merchandise Authorization Management",
|
"name": "Return Merchandise Authorization Management",
|
||||||
"summary": "Return Merchandise Authorization (RMA)",
|
"summary": "Return Merchandise Authorization (RMA)",
|
||||||
"version": "14.0.2.1.0",
|
"version": "14.0.2.2.0",
|
||||||
"development_status": "Production/Stable",
|
"development_status": "Production/Stable",
|
||||||
"category": "RMA",
|
"category": "RMA",
|
||||||
"website": "https://github.com/OCA/rma",
|
"website": "https://github.com/OCA/rma",
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class ResPartner(models.Model):
|
|||||||
|
|
||||||
def action_view_rma(self):
|
def action_view_rma(self):
|
||||||
self.ensure_one()
|
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
|
rma = self.rma_ids
|
||||||
if len(rma) == 1:
|
if len(rma) == 1:
|
||||||
action.update(
|
action.update(
|
||||||
|
|||||||
@@ -508,6 +508,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>Chafique Delli <<a class="reference external" href="mailto:chafique.delli@akretion.com">chafique.delli@akretion.com</a>></li>
|
<li>Chafique Delli <<a class="reference external" href="mailto:chafique.delli@akretion.com">chafique.delli@akretion.com</a>></li>
|
||||||
|
<li>Giovanni Serra - Ooops <<a class="reference external" href="mailto:giovanni@ooops404.com">giovanni@ooops404.com</a>></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="maintainers">
|
<div class="section" id="maintainers">
|
||||||
|
|||||||
Reference in New Issue
Block a user