Analytic Balance report fails when many entries: '<Paragraph at 0xb47494c>Code' too large on page 2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Jay Vora (Serpent Consulting Services) |
Bug Description
Hi,
This bug can be seen on trunk, but it shows up only if you have enough entries.
To trigger it, go in Financial Management > Configuration > Analytic Accounting> Analytic Accounts
then select some account and print the analytic balance.
It looks like if all entries fit within the page, then it's OK.
But as soon as you have many accounting moves, then you likely involve more different accounts and the balance takes more than one page and it breaks.
Empirically I can confirm that in our real production accounting data, if we extend the time frame of the balance, then with a short period, the balance prints, by increasing the period, the balance reports grows untill it finally breaks.
In the attached screenshot, you can see how it looks when it's just small enough not to break (it's actully the page 2 of a 3 pages reports, but pages 1 and 3 are almost empty and only have the header basically).
Here is the stack trace:
Traceback (most recent call last):
File "/opt/openerp/
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/opt/openerp/
return self.create_
File "/opt/openerp/
pdf = create_doc(rml2, logo, title.encode(
File "/opt/openerp/
obj.render()
File "/opt/openerp/
result = self._render()
File "/opt/openerp/
return rml2pdf.
File "/opt/openerp/
r.render(fp)
File "/opt/openerp/
pt_
File "/opt/openerp/
self.
File "/opt/server-
File "/opt/server-
LayoutError: Flowable <LongTable at 183123820 2 rows x 6 cols> with cell(0,0) containing
'<Paragraph at 0xad7878c>Code' too large on page 2
Please notice that this error, looks quite similar to that one with the general ledger that has been fixed recently:
https:/
Hope this helps. Also please bare in mind that my customer just purchased a contract support (they will report you that also using your internal channels), so I hope this could be fixed.
Raphaël Valyi.
Changed in openobject-addons: | |
status: | New → In Progress |
Hello,
I am attaching 2 patches here.
Both the patches are the solution:
The first patch : All accounts on separate page ( look at the header, on separate page).
The second patch : All acounts on a continuos manner. (header comes once only).
Please notify for the best ergonomical way.
Thanks.