Odoo Help

2

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

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

 

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: 6/19/14, 5:02 AM
Seen: 835 times
Last updated: 3/16/15, 8:10 AM