OCA / mis-builder

Management Information System reports for Odoo: easily build super fast, beautiful, custom reports such as P&L, Balance Sheets and more.
GNU Affero General Public License v3.0
147 stars 309 forks source link

[15.0+] mis_builder: non-admin user permission issues #415

Open sbidoul opened 2 years ago

sbidoul commented 2 years ago

You are not allowed to access 'Models' (ir.model) records.

I found this while trying to test the forward port of #410

pedrobaeza commented 2 years ago

I think we can provide a selection with a restricted list of model names, and the modules adding extra models may feed such selection.

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

rafaelbn commented 2 years ago

This is a BUG. I can confirm it in production. We have to give all accountants admin right to work with MIS

Administration/Access Right

imagen

Is this related @sbidoul about what you said?

You are not allowed to access 'Models' (ir.model) records.

@moduon MT-1527

sbidoul commented 2 years ago

Normally the error I had in mind with this issue occurred only when creating report templates. But if it occurs when creating reports, then we can probably split this issue in two that can be fixed independently:

  1. make sure you don't need admin rights to view report templates and create reports
  2. make sure you don't need admin rights to create report templates

(1) should be easier to solve than (2).

yajo commented 2 years ago

Fix in https://github.com/OCA/mis-builder/pull/476

sbidoul commented 1 year ago

Keeping open as users still need admin right to create report templates.

AnizR commented 3 weeks ago

I think that adding groups to mis_builder might be a good idea: