Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Odoo14 You are not allowed to access 'Finestra azione' (ir.actions.act_window) records.

形象
odoo
1 备注
形象
丢弃
形象
odoo
-

Did you find the solution yet?

4 答案
0
形象
odoo
最佳答案

for odoo 16

Step 1: Create a user group and assign users
Step 2: Go To Setting --> Technical --> Security --> Access RIght
Step 3: Search for act_window (You Will get three records)
Step 4:Click external link of Group (any of the three)
Step 5: Add a line and select user
Save and restart server
Worked for me :)

形象
丢弃
0
形象
odoo
最佳答案

Adding this to ir.model.access.csv in a new module works for me:

"access_ir_actions_act_window_user","ir_actions_act_window_user","base.model_ir_actions_act_window","base.group_user",1,1,1,1
"access_ir_actions_act_window_close_group_user","ir_actions_act_window_close_group_user","base.model_ir_actions_act_window_close","base.group_user",1,1,1,1
"access_ir_actions_act_window_view_group_user","ir_actions_act_window_view_group_user","base.model_ir_actions_act_window_view","base.group_user",1,1,1,1
形象
丢弃
0
形象
odoo
最佳答案


Step 1: Create a user group and assign users
Step 2: Go To Setting --> Technical --> Security --> Access RIght
Step 3: Search for act_window (You Will get three records)
Step 4: Duplicate Each Record and assign the group (created in 1st step)
That's All

形象
丢弃
0
形象
odoo
最佳答案

Hi, If you or some one still got this issue like i've faced in odoo 15, then you guys can follow my solution:

First, create new user group and assign your user to that user group.

Here's how you can create new user group by code, other things you can do in admin without coding:


<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="0">
<!-- create new user group category -->
<record model="ir.module.category" id="z_mrp_production_for_baan_group_category">
<field name="name">MRP Production For Baan Category</field>
<field name="description">MRP Production For Baan Category</field>
<!-- sequence is the order of this user group in user detail page -->
<field name="sequence">99</field>
</record>

<!-- create new user group -->
<record id="z_mrp_production_for_baan_access_to_view" model="res.groups">
<field name="name">MRP Production For Baan Access To View</field>
<!-- based on above category (z_mrp_production_for_baan_group_category) -->
<field name="category_id" ref="z_mrp_production_for_baan_group_category"/>
</record>
</data>
</odoo>


Upgrade the module to make this work.

Then you go to Settings -> Security -> Access Right -> search “act_window”, you will see 3 records that use user group “administration / settings”, duplicate those 3 records and assign your user group to that.

That's the idea.

How to duplicate? Follow this instruction:

Click on "Action Window" on "Model" Column, you will see an External Link show up, click on it to open "ir.actions.act_window" model popup => go to "access right" tab => create new record with your created user group above.

Done. Don't forget to restart the server after this just to make sure everything work good.


Note:

Do not create access right by code for "ir.actions.act_window" because it will causing an issue about can't find the model.

Also, Do not assign your user to user group “administration / settings” because that will make that user can see the "Settings" menu.

Thanks for reading, hope it's help you guys.

1 备注
形象
丢弃
形象
odoo
-

Thanks, It Works For me