Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

account_financial_report_webkit_xls limited to 65536 rows #8

Closed
guewen opened this issue Aug 14, 2014 · 8 comments
Closed

account_financial_report_webkit_xls limited to 65536 rows #8

guewen opened this issue Aug 14, 2014 · 8 comments
Labels

Comments

@guewen
Copy link
Member

guewen commented Aug 14, 2014

The module account_financial_report_webkit_xls exports the financial reports to Excel files.
It uses the xlwt library so it is compatible with the versions of Excel prior to 2007 which are known to support only 65536 rows per sheet.
65536 rows is a very low limit for reports such as a general ledger or partner ledger.

I propose to replace the xlwt library by openpyxl which allow to generate .xlsx files (Excel 2007+). Thus, the limit would be 1 048 576 rows.

The downside is that people with Excel versions prior to 2007 would not be able to open the files, but since Libreoffice 3.3.3+ can open the files, I don't consider that as a real problem.

@sbidoul
Copy link
Member

sbidoul commented Aug 14, 2014

👍 xlsx also works in Excel 2003 with a compatibility pack from Microsoft if my memory is correct.

But first the huge pep8 effort in #6 by @laetitia-gangloff must be finalized and merged.

@guewen guewen mentioned this issue Aug 15, 2014
@guewen
Copy link
Member Author

guewen commented Aug 15, 2014

Didn't saw this PR, it is nearly done, still a few annoying lines :-(

This module will be painful to port over openenpyxl I feel. It depends on report_xls which seems intimately tied with xlwt. Should I create a report_xlsx and depends on this one instead?
Or rather modify report_xls in place?

@pedrobaeza
Copy link
Member

I agree, but first we must fix with current base code.

@yvaucher yvaucher added bug and removed needs review labels Aug 18, 2014
@guewen
Copy link
Member Author

guewen commented Aug 18, 2014

I agree, but first we must fix with current base code.

What do you mean by "fix"?
Please read my comment on #6 (comment)

@pedrobaeza
Copy link
Member

I mean fix PEP8 correctly in the @laetitia-gangloff branch.

@guewen
Copy link
Member Author

guewen commented Aug 19, 2014

So please give your opinion on #6 (comment)

@bwrsandman
Copy link

What's the status on this

fmdl added a commit to fmdl/account-financial-reporting that referenced this issue May 12, 2017
@pedrobaeza
Copy link
Member

This is a limitation of XLS itself. As there's now report_xlsx, I close this.

vrenaville pushed a commit to camptocamp/account-financial-reporting that referenced this issue Oct 23, 2018
rconjour referenced this issue in EssentNovaTeam/account-financial-reporting Mar 16, 2020
rconjour referenced this issue in EssentNovaTeam/account-financial-reporting Mar 16, 2020
…-2015-sbi

7.0 make asset management test suite FY independent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants