How to add multiple conditions using 'and' 'or' in object.search() function? I added the conditions using '&','|', but one conditions still shows wrong output. [Closed]
The Question has been closed for reason: duplicate questionby
I want to add the below condition in object.search() function.
Condition is : result_ids = obj.search(self.cr, self.uid, [(('start_date','>=',form['date_start'] + ' 00:00:00') and ('start_date','<=',form['date_end'] + ' 23:59:59')) or (('end_date','>=',form['date_start'] + ' 00:00:00') and ('end_date','<=',form['date_end'] + ' 23:59:59')) and ('employee_id','in',emp_ids)])
I tried many ways but no output. How can i give this condition?
About This Community
|Asked: 5/29/15, 12:59 AM|
|Seen: 505 times|
|Last updated: 6/1/15, 5:51 AM|