Skip to content

Commit

Permalink
[TYPO] modules: better safe than sorry
Browse files Browse the repository at this point in the history
Too many people copy-past this line without understand !
  • Loading branch information
JKE-be committed Feb 23, 2015
1 parent a6a1764 commit 0c964f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openerp/modules/loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def load_modules(db, force_demo=False, status=None, update_module=False):
cr.execute("""select model,name from ir_model where id NOT IN (select distinct model_id from ir_model_access)""")
for (model, name) in cr.fetchall():
if model in registry and not registry[model].is_transient() and not isinstance(registry[model], openerp.osv.orm.AbstractModel):
_logger.warning('The model %s has no access rules, consider adding one. E.g. access_%s,access_%s,model_%s,,1,1,1,1',
_logger.warning('The model %s has no access rules, consider adding one. E.g. access_%s,access_%s,model_%s,,1,0,0,0',
model, model.replace('.', '_'), model.replace('.', '_'), model.replace('.', '_'))

# Temporary warning while we remove access rights on osv_memory objects, as they have
Expand Down

0 comments on commit 0c964f0

Please sign in to comment.