[IMP]
authorSanjay Gohel (Open ERP) <sgo@tinyerp.com>
Fri, 30 Mar 2012 05:54:19 +0000 (11:24 +0530)
committerSanjay Gohel (Open ERP) <sgo@tinyerp.com>
Fri, 30 Mar 2012 05:54:19 +0000 (11:24 +0530)
bzr revid: sgo@tinyerp.com-20120330055419-0h6vm6szysfn3fez

addons/project_timesheet/project_timesheet.py

index ff64e08..2780f71 100644 (file)
@@ -63,7 +63,7 @@ class project_project(osv.osv):
             search_view = data_obj.get_object_reference(cr, uid, 'project_timesheet', 'view_account_analytic_line_search_account_inherit')
             context.update({
                 #'search_default_user_id': uid,
-                'search_default_account_id':project.id,
+                'search_default_account_id':project.analytic_account_id.id,
                 #'search_default_open':1,
             })
             value = {