Odoo Help

1

How can filter One2many?

By
Algode
on 3/17/15, 11:04 AM 850 views

I have employee_family() that is inherit from hr.employee().

In hr_employee() have new One2many field related with employee_family().

I need filter for see only one record of all that correspond to one employee.

How can do it?

2
Cyril Gaspard (GEM)
On 3/18/15, 9:36 PM

Hi,

without code it's difficult ...

what is the value/field/type of employee you want to filter ?

else try :

add in view form domain = [('employee_id.id', '=', employee_id.id), ('employee_one_id.id', '=', employee_one_id.id)]

 

bye

Thanks. I try this now and see the results.

Algode
on 3/18/15, 9:40 PM

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

Question tools

1 follower(s)

Stats

Asked: 3/17/15, 11:04 AM
Seen: 850 times
Last updated: 3/23/15, 4:34 PM