what will be reason for following warning ?

Asked by shanky

Hello,
 I am creating am_purchase module for my own study purpose, I am using all the content in default purchase module which is developed by OpenERP.

I get sever side following warning message on :
[2010-05-04 11:52:41,178] WARNING:init:object purchase.order (Purchase order) has no access rules!
[2010-05-04 11:52:41,178] WARNING:init:object purchase.order.line (Purchase Order lines) has no access rules!
what will be reason for above warning? Any one help me?

For the following warning,I description, myself created certificate Key put in __terp__.py
[2010-05-04 11:52:46,848] WARNING:init:module am_purchase: description is empty !
[2010-05-04 11:52:46,848] WARNING:init:module am_purchase: no quality certificate

Shankar

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Borja López Soilán (NeoPolus)
Solved:
Last query:
Last reply:
Revision history for this message
Riken Bhorania (OpenERP) (rch-openerp) said :
#1

Hello,

It ask you to add security rules for purchase.order and purchase.order.line object respectively to restrict access these objects user wise.

For that you have to create one folder named 'Security' and you can define security rules in csv or xml file.

Revision history for this message
Best Borja López Soilán (NeoPolus) (borjals) said :
#2

Object-level permissions (create,read,write,unlink) must be defined for groups, if you want anybody but the admin user to be able to access them. That is what OpenERP is warning you about: your modified purchase.order is not accessible by normal users.

Inside of most standard modules you will find a security folder with a "ir.model.access.csv" defining the security rules like this:

"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_purchase_order","purchase.order","model_purchase_order","purchase.group_purchase_user",1,1,1,1
"access_purchase_order_line","purchase.order.line","model_purchase_order_line","purchase.group_purchase_user",1,1,1,1

Those lines will give the users in the "group_purchase_user" permission to read, write, create and unlink purchase orders and lines.

Revision history for this message
shanky (shankar-shinde-deactivatedaccount) said :
#3

Thanks Borja López Soilán (Pexego), that solved my question.