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/50560

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/50560
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-21 08:43:00 +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}
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to