Purnendu Singh (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-first_10_clicks-psi into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-first_10_clicks-psi/+merge/109107

Hello,

Here i propose a new group(group_delegate_task) for
restricing "delegate" button & "Delegation History" page on project form view..

Thanks,
Purnendu Singh
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-first_10_clicks-psi/+merge/109107
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-first_10_clicks-psi.
=== modified file 'project/project_view.xml'
--- project/project_view.xml	2012-06-06 08:20:08 +0000
+++ project/project_view.xml	2012-06-07 11:16:52 +0000
@@ -313,7 +313,7 @@
                         <button name="do_draft" string="Draft" type="object"
                                 states="cancel,done"/>
                         <button name="%(action_project_task_delegate)d" string="Delegate" type="action"
-                                states="pending,open,draft"/>
+                                states="pending,open,draft" groups="project.group_delegate_task"/>
                         <button name="do_cancel" string="Cancel" type="object"
                                 states="draft,open,pending" />
                         <button name="stage_previous" string="Previous Stage" type="object"
@@ -359,7 +359,7 @@
                                 </tree>
                             </field>
                         </page>
-                        <page string="Delegations History">
+                        <page string="Delegations History" groups="project.group_delegate_task">
                             <separator string="Parent Tasks" colspan="4"/>
                             <field colspan="4" height="150" name="parent_ids" nolabel="1"/>
                             <separator string="Delegated tasks" colspan="4"/>

=== modified file 'project/res_config.py'
--- project/res_config.py	2012-05-14 15:09:26 +0000
+++ project/res_config.py	2012-06-07 11:16:52 +0000
@@ -54,7 +54,10 @@
             help="Allows you to compute work on tasks."),
         'group_time_work_estimation_tasks': fields.boolean("Time Estimation on Tasks",
             implied_group='project.group_time_work_estimation_tasks',
-            help="Allows you to compute Time Estimation on tasks."),                                
+            help="Allows you to compute Time Estimation on tasks."),
+        'group_manage_delegation_task': fields.boolean("Manage Delegation Task",
+            implied_group='project.group_delegate_task',
+            help="Allows you to make all delegation information visible."),                                
     }
 
 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

=== modified file 'project/res_config_view.xml'
--- project/res_config_view.xml	2012-06-04 12:11:39 +0000
+++ project/res_config_view.xml	2012-06-07 11:16:52 +0000
@@ -19,6 +19,7 @@
                         <field name="module_pad"/>
                         <field name="group_tasks_work_on_tasks"/>
                         <field name="group_time_work_estimation_tasks"/>
+                        <field name="group_manage_delegation_task"/>
 
                         <separator string="Planning" colspan="4"/>
                         <field name="module_project_long_term"/>

=== modified file 'project/security/project_security.xml'
--- project/security/project_security.xml	2012-04-27 07:17:01 +0000
+++ project/security/project_security.xml	2012-06-07 11:16:52 +0000
@@ -14,6 +14,11 @@
         <field name="users" eval="[(4, ref('base.user_root'))]"/>
     </record>
 
+    <record id="group_delegate_task" model="res.groups">
+        <field name="name">Task Delegation</field>
+        <field name="category_id" ref="base.module_category_hidden"/>
+    </record>
+
     <record model="ir.ui.menu" id="menu_definitions">
         <field name="groups_id" eval="[(6,0,[ref('group_project_manager')])]"/>
     </record>

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to