diff options
| author | Turkesh Patel (Open ERP) <tpa@tinyerp.com> | 2013-09-09 11:03:00 +0530 |
|---|---|---|
| committer | Turkesh Patel (Open ERP) <tpa@tinyerp.com> | 2013-09-09 11:03:00 +0530 |
| commit | b8c1905e7b3d068edf44ab847667ec5b8977e32f (patch) | |
| tree | 668f07596e193b5cabe10de65193b1c36fee5bba /addons/project/project.py | |
| parent | bf1649ff7432b0f897689b30e8610dfd9377e1c9 (diff) | |
| parent | 1b3e67fc720cf3b8f91d465c7c3cb671eec39e1c (diff) | |
[MRG] merge with lp:openobject-addons/7.0
bzr revid: tpa@tinyerp.com-20130909053300-bfsxzkyk600fg473
Diffstat (limited to 'addons/project/project.py')
| -rw-r--r-- | addons/project/project.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/project/project.py b/addons/project/project.py index 0a6c62fe784..e413e5d6038 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -736,6 +736,16 @@ class task(base_stage, osv.osv): new_name = _("%s (copy)") % (default.get('name', '')) default.update({'name':new_name}) return super(task, self).copy_data(cr, uid, id, default, context) + + def copy(self, cr, uid, id, default=None, context=None): + if context is None: + context = {} + if default is None: + default = {} + stage = self._get_default_stage_id(cr, uid, context=context) + if stage: + default['stage_id'] = stage + return super(task, self).copy(cr, uid, id, default, context) def _is_template(self, cr, uid, ids, field_name, arg, context=None): res = {} |
