Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on create server action (ir.actions.server) using admin user #26

Open
LuisMuro opened this issue Jul 8, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@LuisMuro
Copy link

LuisMuro commented Jul 8, 2022

Module

role_policy

##Model
role.policy.menu.action.common

Describe the bug

There is no way to create a new action server using admin user,an error message appears each you try it, next is the last 10 lines of error message:

File "/home/odoo/instance/odoo/odoo/api.py", line 338, in _model_create_multi
return create(self, [arg])
File "/home/odoo/instance/odoo/odoo/addons/base/models/ir_actions.py", line 49, in create
res = super(IrActions, self).create(vals_list)
File "", line 2, in create
File "/home/odoo/instance/odoo/odoo/api.py", line 339, in _model_create_multi
return create(self, arg)
File "/home/odoo/instance/extra_addons/role-policy/role_policy/models/role_policy_menu_action_common.py", line 28, in create
vals["groups_id"].extend([(4, x.id) for x in roles.mapped("group_id")])
KeyError: 'groups_id'

To Reproduce

Affected versions: v13 Enterprise

Steps to reproduce the behavior:

  1. (With admin user) go to Settings -> Technical -> Server Actions.
  2. Click on Create button.
  3. Fill mandatory fields and save.

Expected behavior
Create new server actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant