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
Nikolaus Weingartmair
parent
07838b0d4e
commit
c1f01ed158
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user