mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[14.0][FIX] rma_sale, fix action permission issues.
This commit is contained in:
committed by
Nikolaus Weingartmair
parent
a6f06c9e06
commit
07838b0d4e
@@ -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(
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
* David Vidal
|
||||
|
||||
* Chafique Delli <chafique.delli@akretion.com>
|
||||
* Giovanni Serra - Ooops <giovanni@ooops404.com>
|
||||
|
||||
Reference in New Issue
Block a user