@@ -798,7 +797,7 @@
-
+
diff --git a/addons/project/res_config.py b/addons/project/res_config.py
index fcb3ecc9e21..7c41e4913f3 100644
--- a/addons/project/res_config.py
+++ b/addons/project/res_config.py
@@ -52,7 +52,7 @@ class project_configuration(osv.osv_memory):
'module_project_issue_sheet': fields.boolean("invoice working time on issues",
help="""Provides timesheet support for the issues/bugs management in project.
This installs the module project_issue_sheet."""),
- 'group_tasks_work_on_tasks': fields.boolean("compute work activities on tasks",
+ 'group_tasks_work_on_tasks': fields.boolean("Log work activities on tasks",
implied_group='project.group_tasks_work_on_tasks',
help="Allows you to compute work on tasks."),
'group_time_work_estimation_tasks': fields.boolean("manage time estimation on tasks",
@@ -72,4 +72,16 @@ class project_configuration(osv.osv_memory):
user = self.pool.get('res.users').browse(cr, uid, uid, context)
user.company_id.write({'project_time_mode_id': config.time_unit.id})
+ def onchange_time_estimation(self, cr, uid, ids, group_time_work_estimation_tasks):
+ if group_time_work_estimation_tasks:
+ return {'value': {'group_tasks_work_on_tasks': True}}
+ else :
+ return {'value': {'group_tasks_work_on_tasks': False}}
+
+ def onchange_project_timesheet(self, cr, uid, ids, module_project_timesheet):
+ if module_project_timesheet:
+ return {'value': {'group_tasks_work_on_tasks': True}}
+ else :
+ return {'value': {'group_tasks_work_on_tasks': False}}
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/project/res_config_view.xml b/addons/project/res_config_view.xml
index 821d7a58fd4..5b229332277 100644
--- a/addons/project/res_config_view.xml
+++ b/addons/project/res_config_view.xml
@@ -30,7 +30,7 @@
-
+
@@ -51,7 +51,7 @@
-
+
diff --git a/addons/project/security/project_security.xml b/addons/project/security/project_security.xml
index f867285138a..ad7cae09133 100644
--- a/addons/project/security/project_security.xml
+++ b/addons/project/security/project_security.xml
@@ -7,6 +7,11 @@
+
+ Long Term Planning / User
+
+
+
Manager
diff --git a/addons/project_issue/project_issue_view.xml b/addons/project_issue/project_issue_view.xml
index b37cf40014e..d95be7d8e38 100644
--- a/addons/project_issue/project_issue_view.xml
+++ b/addons/project_issue/project_issue_view.xml
@@ -100,8 +100,6 @@
states="open"/>
-
@@ -116,9 +114,12 @@
-
+
-
+
+
+
+
@@ -358,7 +359,7 @@
-
+
diff --git a/addons/project_long_term/project_long_term_view.xml b/addons/project_long_term/project_long_term_view.xml
index b4b98e8fe4a..1730ac472eb 100644
--- a/addons/project_long_term/project_long_term_view.xml
+++ b/addons/project_long_term/project_long_term_view.xml
@@ -99,7 +99,7 @@
-
+
@@ -369,7 +369,7 @@
parent="base.menu_project_long_term" sequence="2"/>
+ name="Resources" parent="base.menu_custom" sequence="3"/>
diff --git a/addons/project_mrp/project_procurement.py b/addons/project_mrp/project_procurement.py
index 299a74f52aa..ae89e44d5da 100644
--- a/addons/project_mrp/project_procurement.py
+++ b/addons/project_mrp/project_procurement.py
@@ -73,6 +73,7 @@ class procurement_order(osv.osv):
'date_deadline': procurement.date_planned,
'planned_hours': planned_hours,
'remaining_hours': planned_hours,
+ 'partner_id':procurement.sale_line_id.order_id.partner_id.id,
'user_id': procurement.product_id.product_manager.id,
'notes': procurement.note,
'procurement_id': procurement.id,