Code Monkey home page Code Monkey logo

role-policy's People

Contributors

jordibforgeflow avatar luc-demeyer avatar oca-git-bot avatar oca-travis avatar simahawk avatar tarteo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

role-policy's Issues

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

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.

README issues

Hi,

The role_policy module has rst validity error in README.rst.

Moreover the modules in this repo do not follow the OCA template. Following this template with readme fragments is mandatory in OCA, so the README.rst are generated with a consistent layout.

Export xlsx, Import xls

Hello,

The export_xls() function exports the roles with an ".xlsx" extension but is not possible import roles in xlsx format, to import roles is neccesary enter to file and save as xls.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.