Skip to content

Commit

Permalink
[FIX] Flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpeiffer committed Sep 27, 2016
1 parent 4f29dc4 commit 121001a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion workflow_activity_action/models/activity_record_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def _compute_activity_rule_domain(self, activity_id):
FROM activity_record_rule r
WHERE r.active is True
AND r.activity_id = %s
AND (r.id IN (SELECT rule_group_id FROM activity_rule_group_rel g_rel
AND (r.id IN (SELECT rule_group_id
FROM activity_rule_group_rel g_rel
JOIN res_groups_users_rel u_rel ON (g_rel.group_id = u_rel.gid)
WHERE u_rel.uid = %s) OR r.global)""", (activity_id,
self._uid))
Expand Down
2 changes: 1 addition & 1 deletion workflow_task/models/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _search_ref_object(self, operator, value):
WHERE res_type=%s""", (model,))
mids = [r[0] for r in self._cr.fetchall()]
if not self.env[model].check_access_rights(
'read', raise_exception=False):
'read', raise_exception=False):
continue
ns_result = self.env[model].name_search(
name=value, operator=operator, args=[('id', 'in', mids)])
Expand Down

0 comments on commit 121001a

Please sign in to comment.