Odoo Help

1

0
1 Answer
0
Ubaid ur Rehman
7/20/17, 2:30 AM

Hi, I am late but may be this will help. The following part is wrong in your code:
   search_task = self.search(['|', ('user_id', '=', record.id), ('reviewer_id', '=', record.id), ])
There you need to compare the id not the object. Its clear in logs(Comparing apples and oranges: res.users(1,) == 1 (/home/browseinfo/workspace/v9/openerp/addons/base/ir/ir_model.py:783))  but may be you missed. Problem was solved if you use.
   search_task = self.search(['|', ('user_id.id', '=', record.id), ('reviewer_id', '=', record.id), ])

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now