This question has been flagged
3809 Views

i put a condition in domain ('field1','=',False)

when I press search more, it shows an error: ProgrammingError: operator does not exist: integer = boolean

how to solve this problem?


Avatar
Discard

Have you added the domain to a many2one filed? What type id field is filed1. is it int, char or boolean? If you field (say f1) which is a many2one field and you are adding domain to that, the declaration should be as follows: 'f1': fields.many2one('parent.class','F1',domain=[('field1','=',False)]), where field1 is the field in parent.class