Skip to content

Commit

Permalink
Merge pull request OCA#66 from hbrunn/ignore_nonauto
Browse files Browse the repository at this point in the history
[IMP] ignore models with _auto = False
  • Loading branch information
legalsylvain committed Jun 4, 2014
2 parents e87c03f + f3cb733 commit f1ade9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openerp/modules/loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ def _load_data(cr, module_name, idref, mode, kind):
# OpenUpgrade: add this module's models to the registry
local_registry = {}
for model in models:
if not model._auto:
continue
openupgrade_loading.log_model(model, local_registry)
openupgrade_loading.compare_registries(
cr, package.name, upg_registry, local_registry)
Expand Down

0 comments on commit f1ade9a

Please sign in to comment.