Filter employees by project in odoo 12

You have got the wrong syntax of odoo’s search method do it like this,

employees = self.env['hr.employee'].search([('user_id','in', user_ids)])

Missing part from your syntax: round braces around your domain.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top