[FIX] coding style

pull/100/head
Holger Brunn 2015-03-18 10:22:38 +01:00
parent b09a74053f
commit 48e8f885d5
1 changed files with 3 additions and 4 deletions

View File

@ -61,8 +61,8 @@ class IrFilters(Model):
context=context):
domain = eval_n(this['domain_this'])
for u in self.read(cr, uid, this['union_filter_ids'],
['domain', 'evaluate_always', 'model_id'],
context=context):
['domain', 'evaluate_always', 'model_id'],
context=context):
if u['evaluate_always']:
matching_ids = self.pool[u['model_id']].search(
cr, uid, eval_n(u['domain']),
@ -96,8 +96,7 @@ class IrFilters(Model):
context=None):
self.write(cr, uid, ids, {'domain_this': field_value})
def _evaluate_get(self, cr, uid, ids, field_name, args,
context=None):
def _evaluate_get(self, cr, uid, ids, field_name, args, context=None):
"""check if this filter contains references to x2many fields. If so,
then negation goes wrong in nearly all cases, so we evaluate the
filter and remove its resulting ids"""