[FIX] rma: low privledge user action access

This commit is contained in:
Jared Kipe
2022-02-15 13:11:56 -08:00
parent 39e1a3f04e
commit 20f4348a06
3 changed files with 3 additions and 3 deletions

View File

@@ -176,7 +176,7 @@ class RMA(models.Model):
lines = make_line_obj.create({
'rma_id': rma.id,
})
action = self.env.ref('rma_product_cores.action_rma_add_lines').read()[0]
action = self.env['ir.actions.act_window']._for_xml_id('rma_product_cores.action_rma_add_lines')
action['res_id'] = lines.id
return action