This question has been flagged
2 Replies
2880 Views

Good day to all. I want to ask and hope i'll find an answer. As i've said, i want to display fields from many2many table. The case is this, the table employee has foreman and under foreman there are lists of employee handled by him(foreman). By the way, in order to create foreman i declared fields of type boolean (is_foreman). Now, i also have a table named contract which has fields that is many2one to employee table. My problem is howshould i display list of employee handled by foreman in my contract table. I really stuck in this dilemma. Hope i'll find a solution.

Avatar
Discard
Author Best Answer

Thank you sir, actually foreman is not a separate table. He is from employee table and can only determined by the fields boolean (is_foreman) and under him he handled many employees who is also from employee table. Everytime i want to create a contract i will assign a foreman. My problem now is how should i show those employees directly handled by that foreman in my contract view? Sorry for my english.

Thanks for the response.

Avatar
Discard
Best Answer

Ahmad,

What we understand is:

- Employee Model has a boolean, is_forman.

- Contract is a table which has a many2one field relating to employee table.

Is foreman a separate table? How is it related to contract?

Thanks.

 

Avatar
Discard