[IMP] loading: the warning about access rights give an example that can be copied.

bzr revid: vmt@openerp.com-20121115160611-9dkyx82d94pve2rx
This commit is contained in:
Vo Minh Thu 2012-11-15 17:06:11 +01:00
parent 147fae832a
commit 7c33378557
1 changed files with 2 additions and 1 deletions

View File

@ -348,7 +348,8 @@ def load_modules(db, force_demo=False, status=None, update_module=False):
for (model, name) in cr.fetchall():
model_obj = pool.get(model)
if model_obj and not model_obj.is_transient():
_logger.warning('Model %s (%s) has no access rules!', model, name)
_logger.warning('The model %s has no access rules, consider adding one. E.g. access_%s,access_%s,model_%s,,1,1,1,1',
model, model.replace('.', '_'), model.replace('.', '_'), model.replace('.', '_'))
# Temporary warning while we remove access rights on osv_memory objects, as they have
# been replaced by owner-only access rights