Browse Source

[FIX] coding style

pull/100/head
Holger Brunn 10 years ago
parent
commit
48e8f885d5
  1. 7
      web_advanced_filters/model/ir_filters.py

7
web_advanced_filters/model/ir_filters.py

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

Loading…
Cancel
Save