>>> domain = "[('section_id', '=', section_id)]"
>>>
>>> domain = eval(domain)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1, in <module>
NameError: name 'section_id' is not defined
>>> domain
"[('section_id', '=', section_id)]"
The patch as Jay propose works, the domain variable doesn't alter after evaluate and keep teh compatibility with the old functionnality.
I have made a test in a python console
>>> domain = "[('section_id', '=', section_id)]"
>>>
>>> domain = eval(domain)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1, in <module>
NameError: name 'section_id' is not defined
>>> domain
"[('section_id', '=', section_id)]"
The patch as Jay propose works, the domain variable doesn't alter after evaluate and keep teh compatibility with the old functionnality.
Regards,