[MERGE] Merge with lp:~openerp-dev/openobject-addons/jam-dev-addons
bzr revid: sbh@tinyerp.com-20110118122440-3mc1ldpvhyl4ix74
This commit is contained in:
commit
3a64e7c5de
|
@ -184,7 +184,7 @@ class survey_page(osv.osv):
|
||||||
if len(context['line_order'][-1]) > 2 and type(context['line_order'][-1][2]) == type({}) and context['line_order'][-1][2].has_key('sequence'):
|
if len(context['line_order'][-1]) > 2 and type(context['line_order'][-1][2]) == type({}) and context['line_order'][-1][2].has_key('sequence'):
|
||||||
data['sequence'] = context['line_order'][-1][2]['sequence'] + 1
|
data['sequence'] = context['line_order'][-1][2]['sequence'] + 1
|
||||||
if context.has_key('survey_id'):
|
if context.has_key('survey_id'):
|
||||||
data['survey_id'] = context['survey_id']
|
data['survey_id'] = context.get('survey_id', False)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def survey_save(self, cr, uid, ids, context=None):
|
def survey_save(self, cr, uid, ids, context=None):
|
||||||
|
|
|
@ -297,8 +297,9 @@ class survey_question_wiz(osv.osv_memory):
|
||||||
fields[tools.ustr(que.id) + "_" + tools.ustr(ans.id)] = {'type':'datetime', 'string':ans.answer}
|
fields[tools.ustr(que.id) + "_" + tools.ustr(ans.id)] = {'type':'datetime', 'string':ans.answer}
|
||||||
|
|
||||||
elif que_rec.type == 'descriptive_text':
|
elif que_rec.type == 'descriptive_text':
|
||||||
for que_test in que_rec.descriptive_text.split('\n'):
|
if que_rec.descriptive_text:
|
||||||
etree.SubElement(xml_group, 'label', {'string': to_xml(tools.ustr(que_test)), 'align':"0.0"})
|
for que_test in que_rec.descriptive_text.split('\n'):
|
||||||
|
etree.SubElement(xml_group, 'label', {'string': to_xml(tools.ustr(que_test)), 'align':"0.0"})
|
||||||
|
|
||||||
elif que_rec.type == 'single_textbox':
|
elif que_rec.type == 'single_textbox':
|
||||||
etree.SubElement(xml_group, 'field', {'readonly' :str(readonly), 'name': tools.ustr(que.id) + "_single", 'nolabel':"1" ,'colspan':"4"})
|
etree.SubElement(xml_group, 'field', {'readonly' :str(readonly), 'name': tools.ustr(que.id) + "_single", 'nolabel':"1" ,'colspan':"4"})
|
||||||
|
|
Loading…
Reference in New Issue