Can't print a Quotation with a Long Product Description

Bug #1251499 reported by Jennifer Campbell
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Medium
OpenERP's Framework R&D

Bug Description

Step 1: Create a new quotation
Step 2: Add a product
Step 3: Add a long description. I used 2-5 repeats of the Lorum Ipsum paragraph ("Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.")
Step 4: Save product
Step 5: Save Quotation
Step 6: Click the "Print" button

At this point, the system repeatedly gets hung up. Sometimes I get the endless "loading" message. Other times I get error messages like "list index out of range ?>type 'exceptions.IndexError'> IndexError('list index out of range')<traceback object at 0x7f7604f1e758>)" or "'NoneType' object has not attribute 'close' (type 'exceptions.AttributeError'> AttributeError("'NoneType' object has no attribute 'close'",), <traceback object at 0x7fd56f997998>)"

Step 7: Update the product description to only have 1 repeat of the Lorum Ipsum paragraph
Step 8: Save product
Step 9: Save Quotation
Step 10: Click the Print button

With this shorter description, the quotation printed fine. I noticed that one version of lorum ipsum just barely fit on one full page of the PDF output file.

Using OpenERP version 7, Ubuntu version 12.04.3

Revision history for this message
Jennifer Campbell (jcampbell) wrote :
affects: openobject-server → openobject-addons
affects: openobject-addons → openobject-server
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Niels Huylebroeck (red15) wrote :

Ran into this issue a long time ago, caused by the inability of reportlab to split a single <td> in a table across multiple pages, the hanging you are experiencing is reportlab attempting to move the cell to a new page and see if it fits there, it will repeat this process indefinitely.

We've been using report_webkit module for reporting since then.

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.