diff --git a/addons/document/document.py b/addons/document/document.py
index 6c2a6b6aff5..92a00f3222c 100644
--- a/addons/document/document.py
+++ b/addons/document/document.py
@@ -88,7 +88,6 @@ class document_file(osv.osv):
'parent_id': fields.many2one('document.directory', 'Directory', select=1, required=True),
'index_content': fields.text('Indexed Content'),
'partner_id':fields.many2one('res.partner', 'Partner', select=1),
- 'company_id': fields.many2one('res.company', 'Company'),
'file_size': fields.integer('File Size', required=True),
'file_type': fields.char('Content Type', size=128),
@@ -102,7 +101,6 @@ class document_file(osv.osv):
return dirobj._get_root_directory(cr, uid, context)
_defaults = {
- 'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'ir.attachment', context=c),
'user_id': lambda self, cr, uid, ctx:uid,
'file_size': lambda self, cr, uid, ctx:0,
'parent_id': __get_def_directory
diff --git a/addons/document/document_view.xml b/addons/document/document_view.xml
index b978cd222db..eeb2a879cb6 100644
--- a/addons/document/document_view.xml
+++ b/addons/document/document_view.xml
@@ -277,38 +277,42 @@
-
-
- IR Attachment
+
+
+ IR Attachment0
ir.attachment
search
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ IR Attachment2
+ ir.attachment
+ search
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
ir.attachment
ir.attachment
@@ -319,6 +323,7 @@
+
@@ -333,7 +338,6 @@
ir.actions.act_window
ir.attachment
form
-
The Documents repository gives you access to all attachments, such as mails, project documents, invoices etc.
diff --git a/addons/project_long_term/project_long_term.py b/addons/project_long_term/project_long_term.py
index e6f65ba1fa9..d6d43f83c5d 100644
--- a/addons/project_long_term/project_long_term.py
+++ b/addons/project_long_term/project_long_term.py
@@ -297,6 +297,7 @@ class project_phase(osv.osv):
if context is None:
context = {}
resource_pool = self.pool.get('resource.resource')
+ resource_allocation_pool = self.pool.get('project.resource.allocation')
uom_pool = self.pool.get('product.uom')
if context is None:
context = {}
@@ -344,7 +345,12 @@ class project_phase(osv.osv):
'date_start': start_date.strftime('%Y-%m-%d'),
'date_end': end_date.strftime('%Y-%m-%d')
}, context=ctx)
-
+ # write dates into Resources Allocation
+ for resource in phase.resource_ids:
+ resource_allocation_pool.write(cr, uid, [resource.id], {
+ 'date_start': start_date.strftime('%Y-%m-%d'),
+ 'date_end': end_date.strftime('%Y-%m-%d')
+ }, context=ctx)
# Recursive call till all the next phases scheduled
for phase in phase.next_phase_ids:
if phase.state in ['draft', 'open', 'pending']:
diff --git a/addons/project_long_term/project_long_term_view.xml b/addons/project_long_term/project_long_term_view.xml
index e83085c3afa..f124fc27c8c 100644
--- a/addons/project_long_term/project_long_term_view.xml
+++ b/addons/project_long_term/project_long_term_view.xml
@@ -14,8 +14,8 @@
gantt
-
-
+
+
@@ -27,7 +27,7 @@
calendar
-
+
@@ -244,7 +244,7 @@
-
+
@@ -288,7 +288,7 @@
project.phase
form
gantt,tree,form,calendar
- {'search_default_responsible_id':uid,'group_by':'project_id'}
+ {'search_default_responsible_id':uid,'search_default_project':1}
You can subdivide your larger projects into several phases. For each phase, you can define your resources allocation (humans or engine), describe de differend task and link your phase with previous and next one, add constraints date and scheduling. A gantt view of your project phase is also available from this menu. Gantt view is a graphically draw of the project plan; it includes any task dependencies by visually adjusting task durations and priorities, and by linking tasks to each other.
@@ -298,7 +298,7 @@
project.phase
form
tree,form,calendar
- {'search_default_responsible_id':uid,'group_by':'project_id'}
+ {'search_default_responsible_id':uid,'search_default_project':1}