summaryrefslogtreecommitdiff
path: root/addons/project
diff options
context:
space:
mode:
Diffstat (limited to 'addons/project')
-rw-r--r--addons/project/i18n/nl.po8
-rw-r--r--addons/project/project.py10
2 files changed, 14 insertions, 4 deletions
diff --git a/addons/project/i18n/nl.po b/addons/project/i18n/nl.po
index 49a50caf08f..484b818e733 100644
--- a/addons/project/i18n/nl.po
+++ b/addons/project/i18n/nl.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2013-06-07 19:36+0000\n"
-"PO-Revision-Date: 2013-08-08 10:20+0000\n"
+"PO-Revision-Date: 2013-09-04 06:51+0000\n"
"Last-Translator: Erwin van der Ploeg (Endian Solutions) <Unknown>\n"
"Language-Team: Dutch <nl@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-08-09 05:35+0000\n"
-"X-Generator: Launchpad (build 16723)\n"
+"X-Launchpad-Export-Date: 2013-09-05 05:18+0000\n"
+"X-Generator: Launchpad (build 16758)\n"
#. module: project
#: view:project.project:0
@@ -1322,7 +1322,7 @@ msgstr "%s (kopie)"
#. module: project
#: model:mail.message.subtype,name:project.mt_project_task_stage
msgid "Task Stage Changed"
-msgstr "Taakstadium gewijzigd"
+msgstr "Fase taak gewijzigd"
#. module: project
#: view:project.task:0
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 = {}