~clearcorp-drivers/openobject-server/5.0-ccorp

« back to all changes in this revision

Viewing changes to bin/osv/expression.py

  • Committer: Jay Vora(OpenERP)
  • Date: 2011-02-28 09:46:53 UTC
  • Revision ID: jvo@tinyerp.com-20110228094653-y8hhu2v9bggh9nve
[FIX] Record rule/Expression : If wrong domain is supplied,system should notify instead of crashing with an integrity error or a traceback (Ref : Case 4131)

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
                if left == 'id' and operator == 'child_of':
136
136
                    dom = _rec_get(right, working_table)
137
137
                    self.__exp = self.__exp[:i] + dom + self.__exp[i+1:]
 
138
                elif left != 'id':
 
139
                    raise ValueError('Bad Domain Evaluation! %r' % (e,))
138
140
                continue
139
141
 
140
142
            field_obj = table.pool.get(field._obj)