Cédric, thanks for the explanation! " I think you should create a Function field on project.work that will return True or False depending if the user has the permission or not. "
I created a Function field 'is_task' with getter and searcher. Then I created a rule in Groups --> Access Permissions Tab. Now it is working like a charm :) "I think we should replace the (field, operator, operand) by simply a text field with a domain. " I admit the current design requires for a little bit more coding. On the other hand, I like the current design, because: - The Tryton administrator is not writing any domain clauses and he/she does not need to know what 'domain clause' is - Let the people who make the design of the system do the coding, and let the Administrators do the system administration Thanks once again, Todor On Friday, October 5, 2012 10:21:40 PM UTC+3, Cédric Krier wrote: > > On 05/10/12 06:19 -0700, Todor Todorov wrote: > > Hello All, > > > > I am coming from the openerp world and I would love to turn to tryton > due > > to many reasons. > > Thank you for the good job done on Tryton! > > > > I have a quesion on the usage of 'project' module: > > I see that 'Projects' and 'Tasks' are using the same model, called > > 'project.work'. The differenciation is done on the field 'type', where > > 'Task' has type='task' and 'Project' has type='project'. How can I > create a > > user group, which gives the permissions to Read Write Create Delete only > on > > Tasks, but does not give these permissioins on Projects? > > I tried to do this using 'Rules' in the tab 'Access Permissions' of the > > User Group, but it seams I am not getting well the concept for 'Rules' > in > > Tryton. > > A short example would be much appreciated. > > I also think it should be done with rule but the current design of it > doesn't allow such configuration easily. > I think we should replace the (field, operator, operand) by simply a > text field with a domain. > > Otherwise to solve your issue with the current design, I think you > should create a Function field on project.work that will return True or > False depending if the user has the permission or not. Than you can > write a rule with it. > > -- > Cédric Krier > > B2CK SPRL > Rue de Rotterdam, 4 > 4000 Liège > Belgium > Tel: +32 472 54 46 59 > Email/Jabber: [email protected] <javascript:> > Website: http://www.b2ck.com/ > -- -- [email protected] mailing list
