base_report - print screen

Bug #379645 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Jay Vora (Serpent Consulting Services)

Bug Description

trying to print a list report created with base_report_creator

Traceback (most recent call last):
  File "/home/terp/OpenERP/branch/server/5.0/bin/service/web_services.py", line 630, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/home/terp/OpenERP/branch/server/5.0/bin/report/printscreen/ps_list.py", line 74, in create
    res = self._create_table(uid, datas['ids'], result['fields'], fields_order, rows, context, model_desc)
  File "/home/terp/OpenERP/branch/server/5.0/bin/report/printscreen/ps_list.py", line 184, in _create_table
    if tsum[f] != None:
IndexError: list index out of range

Revision history for this message
Ferdinand (office-chricar) wrote :

confirmed at
branch-server 1787
branch-addons 2331

Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Ferdinand,

The report which is shown by 'open report' from base_report_creator is a result of an SQL query, not a model.

So Print screen is not available for it.

Thanks.

Changed in openobject-addons:
status: Confirmed → Won't Fix
Revision history for this message
Ferdinand (office-chricar) wrote :

If "Print Screen" does not work for base_report_creator the print icon must not be available.
the user does/must not know the technic behind but must not receive an error.

Changed in openobject-addons:
status: Won't Fix → New
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

print screen should be available. It seems the context is not passed correctly.
If context is passed correctly, the print screen should work.

Changed in openobject-addons:
assignee: nobody → Jay (Open ERP) (jvo-openerp)
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Ferdinand,

Your long wait has come to an end.

Can you try these patches and let us know?

Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :
Changed in openobject-addons:
status: New → In Progress
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Ferdinand,

Can you try these patches and let us know?

Thanks.

Revision history for this message
Ferdinand (office-chricar) wrote :

thanks both work

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thank you for your response.

Fixed by revision 1849 <email address hidden> in server.
Fixed by revision 2402 <email address hidden> in addons.

Changed in openobject-addons:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.