Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3480 Vistas

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
Descartar
Autor Mejor respuesta

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
Descartar
Mejor respuesta

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
Descartar