347
by Serpent Consulting Services
[ADD] Adding the module task_restrict_access : Normally in a real-time scenario, when one project manager is creating tasks of Projects managed by him; he selects his project and for now, he can choose any member who is non-member of the Project. This is not acceptable in live scenarios. Hence, Serpent Consulting Services contributes a module which will only let the mnager add the members of the project chosen by him. |
1 |
from osv import fields,osv |
2 |
||
3 |
class res_users(osv.osv): |
|
4 |
_inherit = 'res.users' |
|
5 |
||
6 |
_columns = { |
|
7 |
'project_ids': fields.many2many('project.project', 'project_user_rel', 'uid', 'project_id', 'Projects', |
|
8 |
help="These are the projects in which the user has been chosen as one of the members"), |
|
9 |
}
|
|
10 |
||
11 |
res_users() |