Skip to content

Commit

Permalink
Merge pull request #45 from vauxoo-dev/8.0-oca-add-runtime-lint-moy
Browse files Browse the repository at this point in the history
[REF] odoolint: Get closest dependencies and without exclude
  • Loading branch information
moylop260 committed Jun 7, 2016
2 parents 4a3afb1 + 49b17c4 commit 368b47c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion odoolint/models/ir_model_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ def _check_xml_id_unachievable(self, xmlid):
module_ref_str == module_curr_str:
return True
module_curr = module.search([('name', '=', module_curr_str)], limit=1)
dep_closest_ids = module_curr.dependencies_id.mapped('depend_id.id')
module_curr_dep_ids = module_curr._get_module_upstream_dependencies(
module_curr.ids, exclude_states=['uninstallable', 'to remove'])
module_curr.ids, exclude_states=['without_exclude'],
known_dep_ids=dep_closest_ids)
module_curr_deps = module.browse(module_curr_dep_ids).mapped('name')
for mod_autinst in module.search([
('auto_install', '=', True),
Expand Down

0 comments on commit 368b47c

Please sign in to comment.