Module access rules

Asked by Maxime

Hi,

Since the beginning of the production, I have tested my modules with the administrator account
Now I'd like to test my modules with another user.
I gave permission to access the menus, but I can't test the modules.

When I start the server, I see these messages :

_______________________________________________________________________________________
[2010-05-21 09:46:43,681] WARNING:init:object xxxxx.stock (xxxxx.stock) has no access rules!
[2010-05-21 09:46:43,681] WARNING:init:object xxxxx.stock.matos (xxxxx.stock.matos) has no access rules!
[2010-05-21 09:46:43,681] WARNING:init:object xxxxx.soft.type (xxxxx.soft.type) has no access rules!
[2010-05-21 09:46:43,681] WARNING:init:object xxxxx.stock.soft (xxxxx.stock.soft) has no access rules!
[2010-05-21 09:46:43,681] WARNING:init:object xxxxx.stock.mail (xxxxx.stock.mail) has no access rules!
[2010-05-21 09:46:43,681] WARNING:init:object xxxxx.stock.contracts (xxxxx.stock.contracts) has no access rules!
[2010-05-21 09:46:43,682] WARNING:init:object xxxxx.contracts (xxxxx.contracts) has no access rules!
[2010-05-21 09:46:43,682] WARNING:init:object xxxxx.task (xxxxx.tasks) has no access rules!
[2010-05-21 09:46:43,682] WARNING:init:object xxxxx.inter (xxxxx.inter) has no access rules!
[2010-05-21 09:46:43,682] WARNING:init:object xxxxx.report (xxxxx.report) has no access rules!
[2010-05-21 09:46:43,682] WARNING:init:object xxxxx.report.task (xxxxx.report.task) has no access rules!
_______________________________________________________________________________________

How can I do to solve this problem ?

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Vinay Rana (OpenERP)
Solved:
Last query:
Last reply:
Revision history for this message
Best Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello,

=>You need to provide access rights for the new created user by allocating different groups from following menus:

Administration/Users/Users: Open the user into form view and assign the groups from Groups tab (Many2many field relation).

Administration/Users/Groups: You can easily check the alloted access rights (Access Rights Tab) by opening different groups.

=>From code also you can assign access rights in .csv file (module/security/ir.model.access.csv) in the related module.
   You need to add new line for the new created model by filling following fields label:
    id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink

Hope this will help you.
Thanks.

Revision history for this message
Maxime (maximej) said :
#2

Thanks vra (openerp), that solved my question.