Skip to content
Snippets Groups Projects
Commit a39e94f7 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] *: sanitize action content reading


The open_action_with_context was not using _for_xml_id, producing an
error when reading the action content.

In open_action, the action_name was taken from the context and needs
sanity checks. Ensure only actions from the account module can be
read and only if the user has access to the target model.
This is a limitation of the previous behaviour but, at the moment, all
known calls are made refering to an action from the account module.
Limit the scope of this method while the 14.0 is still early to avoid
having a door open to ready any action, and difficult to close later.

Remove old action fetching from the context in create_move that is no
longer used.

closes odoo/odoo#61365

Related: odoo/enterprise#14682
Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
Co-authored-by: default avatarXavier Morel <xmo@odoo.com>
parent 478ebc74
No related branches found
No related tags found
Loading
Showing
with 25 additions and 47 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment