Odoo Help

Welcome!

This community 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.

2

How should i display fields from many2many table which accessed by many2one?

By
Anirudh Lou
on 6/19/14, 5:02 AM 705 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.

1
Anirudh Lou
On 6/19/14, 9:34 PM

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.

1

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 6/19/14, 7:10 AM

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.

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/19/14, 5:02 AM
Seen: 705 times
Last updated: 3/16/15, 8:10 AM