mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] rma: low privledge user action access
This commit is contained in:
@@ -508,7 +508,7 @@ class RMA(models.Model):
|
|||||||
lines = make_line_obj.create({
|
lines = make_line_obj.create({
|
||||||
'rma_id': rma.id,
|
'rma_id': rma.id,
|
||||||
})
|
})
|
||||||
action = self.env.ref('rma.action_rma_add_lines').read()[0]
|
action = self.env['ir.actions.act_window']._for_xml_id('rma.action_rma_add_lines')
|
||||||
action['res_id'] = lines.id
|
action['res_id'] = lines.id
|
||||||
return action
|
return action
|
||||||
|
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ class RMA(models.Model):
|
|||||||
lines = make_line_obj.create({
|
lines = make_line_obj.create({
|
||||||
'rma_id': rma.id,
|
'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
|
action['res_id'] = lines.id
|
||||||
return action
|
return action
|
||||||
|
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ class RMA(models.Model):
|
|||||||
lines = make_line_obj.create({
|
lines = make_line_obj.create({
|
||||||
'rma_id': rma.id,
|
'rma_id': rma.id,
|
||||||
})
|
})
|
||||||
action = self.env.ref('rma_sale.action_rma_add_lines').read()[0]
|
action = self.env['ir.actions.act_window']._for_xml_id('rma_sale.action_rma_add_lines')
|
||||||
action['res_id'] = lines.id
|
action['res_id'] = lines.id
|
||||||
return action
|
return action
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user