[FIX] project: when copying the project, analytic lines of the related analytic accou...
authorRifakat (OpenERP) <rha@tinyerp.com>
Mon, 6 Feb 2012 09:52:38 +0000 (15:22 +0530)
committerRifakat (OpenERP) <rha@tinyerp.com>
Mon, 6 Feb 2012 09:52:38 +0000 (15:22 +0530)
bzr revid: rha@tinyerp.com-20120206095238-l6hxdj6jghl2vpuo

addons/project/project.py

index bff6374..0e3379c 100644 (file)
@@ -218,6 +218,7 @@ class project(osv.osv):
         default = default or {}
         context['active_test'] = False
         default['state'] = 'open'
+        default['line_ids'] = []
         if not default.get('name', False):
             default['name'] = proj.name + _(' (copy)')
         res = super(project, self).copy(cr, uid, id, default, context)