summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorYsa (Open ERP) <ysa@tinyerp.co.in>2010-05-11 16:24:56 +0530
committerYsa (Open ERP) <ysa@tinyerp.co.in>2010-05-11 16:24:56 +0530
commitc94db2ff4c17e00a45ba8576af420a06f66bc55c (patch)
treeb1464241a200fcc8cc5dbaf1339f5cad45a44a3f /addons
parentbda6b316dc94c7274b34653e25d4d21e8c6b9907 (diff)
[IMP] survey :- improve code in name_get method(if user give manually then user not required field).
bzr revid: ysa@tinyerp.co.in-20100511105456-eo6tnsai00kjk2zi
Diffstat (limited to 'addons')
-rw-r--r--addons/survey/survey.py2
-rw-r--r--addons/survey/wizard/survey_browse_answer.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/survey/survey.py b/addons/survey/survey.py
index 9ae441de494..c86f13b262f 100644
--- a/addons/survey/survey.py
+++ b/addons/survey/survey.py
@@ -609,7 +609,7 @@ class survey_response(osv.osv):
reads = self.read(cr, uid, ids, ['user_id','date_create'], context)
res = []
for record in reads:
- name = record['user_id'][1] + ' (' + record['date_create'].split('.')[0] + ')'
+ name = (record['user_id'] and record['user_id'][1] or '' )+ ' (' + record['date_create'].split('.')[0] + ')'
res.append((record['id'], name))
return res
diff --git a/addons/survey/wizard/survey_browse_answer.xml b/addons/survey/wizard/survey_browse_answer.xml
index d73b29acdfb..f08d4d7185b 100644
--- a/addons/survey/wizard/survey_browse_answer.xml
+++ b/addons/survey/wizard/survey_browse_answer.xml
@@ -18,7 +18,7 @@
<separator colspan="4" />
<label align="0.0" colspan="2" string="" />
<button colspan="1" icon="gtk-cancel" special="cancel" string="Cancel"/>
- <button colspan="1" icon="gtk-go-forward" name="action_next" string="Print" type="object"/>
+ <button colspan="1" icon="gtk-go-forward" name="action_next" string="Start" type="object"/>
</form>
</field>
</record>