Skip to content

Commit

Permalink
Merge pull request #184 from Tecnativa/9.0-PR-fetchmail_thread_default
Browse files Browse the repository at this point in the history
[9.0][FIX] fetchmail_thread_default: check model in env for update module
  • Loading branch information
pedrobaeza committed Jul 20, 2017
2 parents 1002d8a + a96bab8 commit 95bc1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetchmail_thread_default/models/fetchmail_server.py
Expand Up @@ -27,7 +27,7 @@ def _get_thread_models(self):
]).mapped("model_id")
# Exclude AbstractModel
return [(m.model, m.name) for m in models
if getattr(self.env[m.model], "_auto")]
if m.model in self.env and getattr(self.env[m.model], "_auto")]

# TODO New api on v10+
# pylint: disable=old-api7-method-defined
Expand Down

0 comments on commit 95bc1f7

Please sign in to comment.