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.

0

create a task for my subordinates only

By
Faris
on 1/14/16, 3:39 PM 424 views

  Any body can help me to create a task for my subordinates only  

Actually i need to Create new task, and when i open the drop down (Assigned to) Only subordinate appear


if someone provide me how to make this rule, really i appreciated

Faris
on 1/15/16, 3:31 AM
0

Tarek Mohamed Ibrahim

--Tarek Mohamed Ibrahim--
896
| 5 3 7
Gîza, Egypt
--Tarek Mohamed Ibrahim--

I am an old VFP developer on ERP

I have moved to 2p since Nov-2014 and started developing with Python on Odoo.

https://www.linkedin.com/profile/public-profile-settings?trk=prof-edit-edit-public_profile

tibrahim@2p.com.sa

Tarek Mohamed Ibrahim
On 1/15/16, 2:00 AM

I think you can do this through coding. You can do this by adding a condition in the "create" method that checks the manager of the person that the task is being assigned to him, if this manager is the current logged in user , " you ", then let the "create" method do the creation, otherwise , raise an exception saying that : " the person you are creating a task on is not one of your subordinates"


Another way is by using Rules, and this is more proficient. In this way you have to add a rule on the subordinate table so that you can not see anyone other than yours.

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: 1/14/16, 3:39 PM
Seen: 424 times
Last updated: 1/15/16, 3:39 AM