Hii,
I just uninstalled and installed proteus from 3.4.3 to 3.6 and i had
the double underscore not allowed error, I later thought it might be an
error due to proteus new version so i changed back to proteus 3.4.3 but
this error continued.
I was trying to save an Account instance but it popped up with this
error, later i thought i shall use the existing accounts so went with
Account.find() the same error appeared
*The trace back:*
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-11-604a0ef12aa4> in <module>()
----> 1 Account.find()
/usr/local/lib/python2.7/dist-packages/proteus/__init__.pyc in find(cls,
condition, offset, limit, order)
667 condition = []
668 ids = cls._proxy.search(condition, offset, limit, order,
--> 669 cls._config.context)
670 return [cls(id) for id in ids]
671
/usr/local/lib/python2.7/dist-packages/proteus/config.pyc in __call__(self,
*args)
160 meth = getattr(self._object, self._name)
161 if not hasattr(meth, 'im_self') or meth.im_self:
--> 162 result = rpc.result(meth(*args, **kwargs))
163 else:
164 assert rpc.instantiate == 0
/home/projects/new/test/FSERP/trytond/trytond/model/modelsql.pyc in search(
cls, domain, offset, limit, order, count, query)
1025
1026 # construct a clause for the rules :
-> 1027 domain = Rule.domain_get(cls.__name__, mode='read')
1028 if domain:
1029 expression &= main_table.id.in_(domain)
/home/projects/new/test/FSERP/trytond/trytond/ir/rule.pyc in domain_get(cls,
model_name, mode)
220 assert rule.domain, ('Rule domain empty,'
221 'check if migration was done')
--> 222 dom = safe_eval(rule.domain, ctx)
223 if rule.rule_group.global_p:
224 clause_global.setdefault(rule.rule_group.id, [
'OR'])
/home/projects/new/test/FSERP/trytond/trytond/tools/misc.pyc in safe_eval(
source, data)
371 def safe_eval(source, data=None):
372 if '__' in source:
--> 373 raise ValueError('Double underscores not allowed')
374
375 comp = _compile_source(source)
ValueError: Double underscores not allowed
----------------------------------------------------------------------------------------------------------------------
How to fix this?
help.
Regards,
Jitesh