Print multiple objects in one single report

Bug #913721 reported by Hannes (Neobis)
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Aeroo Reports
Triaged
Wishlist
Unassigned

Bug Description

I would like to select multiple records in an OpenERP tree, hit the print button and print a report, containing one table with the selected records.
In the report definition is unchecked 'process separately' to make sure that multiple objects would be read into 1 parser instance.

Now, I still had an attachment name in the report definition (because I would like to save the file as an attachment, which should be related to each of the selected records).

If you take a look at report_aeroo.py on line 567 ( http://bazaar.launchpad.net/~kndati/aeroo/trunk/view/head:/report_aeroo/report_aeroo.py#L567 ) the IF condition doesn't care whether 'process separately' is checked or not if the attachment is given.
To me this is a bug...

It doesn't appear logical to me that the report processes objects separately if an attachment name is given.

I think it should be spec'd if this is wanted behavior.
Otherwise something must be implemented that saves the attachment when processing separately.

Revision history for this message
Hannes (Neobis) (nb2) wrote :

a similar condition is in cre

Revision history for this message
Hannes (Neobis) (nb2) wrote :

a similar condition is in the 'create_source_pdf' method

Changed in aeroo:
status: New → Opinion
Revision history for this message
sraps (Alistek) (erpsraps) wrote :

This is unclear what way it should be implemented:
1. Original OpenERP reporting engine performs just like you have described, though I agree that by adding Process Separately we have created some misleading situation.
2. Both of modes could be reasonable. As I can imagine both of them used for some sort of application.

Concluding this I would say that it deserves adding some additional option to be fine tuned by the user. Leaving current as default option, in order not to break backward compatibility. What do you think?

Meanwhile I'll mark this as Opinion, after we have clear vision, I'll mark this as Wishlist, to get processed when we will do next facelift of Aeroo Reports.

BR
Kaspar

Revision history for this message
Hannes (Neobis) (nb2) wrote :

maybe a simple improvement can be:

if attach and aeroo_ooo and report_xml.process_sep: # and instead of or
    #normal process....
    ...
elif attach or aeroo_ooo and not report_xml.process_sep:
   # do all stuff in 1 file
   ...

Revision history for this message
Hannes (Neobis) (nb2) wrote :

Sorry, you can remove the previous comment... I mean:

maybe a simple improvement can be:

if attach and aeroo_ooo and report_xml.process_sep: # and instead of or
    #normal process....
    ...
elif attach and aeroo_ooo and not report_xml.process_sep:
   # do all stuff in 1 file
   ...

Changed in aeroo:
importance: Undecided → Wishlist
status: Opinion → Triaged
Revision history for this message
Cristian Salamea (ovnicraft) wrote :

I have a question here: Aeroo performs select multiple records in an OpenERP tree, hit the print button and print a report, containing one table with the selected records ?

So i tried and give the error o is not defined

Regards,

Revision history for this message
Hannes (Neobis) (nb2) wrote :

Your question is probably the same as mine. Your last remark is not clear to me however.

Revision history for this message
Graeme Gellatly (gdgellatly) wrote :

The suggested fix is not right. In fact it is a regression and would break most reporting. Most reports do not check process seperately.

Revision history for this message
vita (mia-1ngola) wrote :

Hi all,

Same error in webkit report.

I try to implement one report for multiple objects as orders lines but it give me more reports as numbers of orders line checked.

If I select 3 orders, it gives 3 reports but not 1 report for this 3 orders.

Thanks!

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.