← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-721894-jam into lp:openobject-addons

 

Jigar Amin - OpenERP has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-721894-jam into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  #721894 [Trunk][survey] Matrix of Choices (Multiple Answers Per Row) broken; patch included
  https://bugs.launchpad.net/bugs/721894

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-721894-jam/+merge/50695

Hello,
    Changes with the proposal:
     + Bug : lp:721894 [Trunk][survey] Matrix of Choices (Multiple Answers Per Row) broken; patch included 
    Kindly Review this.
Thank You
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-721894-jam/+merge/50695
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-721894-jam.
=== modified file 'survey/wizard/survey_answer.py'
--- survey/wizard/survey_answer.py	2011-01-18 12:08:14 +0000
+++ survey/wizard/survey_answer.py	2011-02-22 05:08:50 +0000
@@ -242,7 +242,7 @@
                                 etree.SubElement(xml_group, 'separator', {'string': tools.ustr(col.title),'colspan': '1'})
                             for row in ans_ids:
                                 etree.SubElement(xml_group, 'label', {'string': to_xml(tools.ustr(row.answer)) +' :-', 'align': '0.0'})
-                                for col in que_col_head.read(cr, uid, que_rec.column_heading_ids):
+                                for col in que_col_head.browse(cr, uid, [head.id for head in  que_rec.column_heading_ids]):
                                     etree.SubElement(xml_group, 'field', {'readonly' :str(readonly), 'name': tools.ustr(que.id) + "_" + tools.ustr(row.id) + "_" + tools.ustr(col.id), 'nolabel':"1"})
                                     fields[tools.ustr(que.id) + "_" + tools.ustr(row.id)  + "_" + tools.ustr(col.id)] = {'type':'boolean', 'string': col.title}
 


Follow ups