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

[FIX] Cursor of browsed objects is already closed when fetching downl… #43

Merged

Conversation

StefanRijnhart
Copy link
Member

…oad filename

Fixes #30

@StefanRijnhart
Copy link
Member Author

Delegating the fetching of the download filename to the xml report model. In the original version, the fetching was depending on records browsed in the controller, but the cursor of the browse records would be closed after the call from the controller. cc @sebastienbeau as you backported this module to 7.0.

@paulius-sladkevicius
Copy link
Contributor

@StefanRijnhart I suggest to merge it, it works fine on my side with this fix. Took to much time to figure out why it don't work, but finally came idea to check PR's, thanks!

@pedrobaeza
Copy link
Member

It's needed to fix pylint errors first:

report_custom_filename/model/ir_actions_report_xml.py:50:17: E122 continuation line missing indentation or outdented
report_custom_filename/model/ir_actions_report_xml.py:51:17: E122 continuation line missing indentation or outdented
report_custom_filename/model/ir_actions_report_xml.py:52:17: E122 continuation line missing indentation or outdented
report_custom_filename/model/ir_actions_report_xml.py:53:13: E122 continuation line missing indentation or outdented

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 30.62% when pulling 1f21d20 on StefanRijnhart:7.0-report_custom_filename_closed_cursor into 008f678 on OCA:7.0.

@StefanRijnhart
Copy link
Member Author

@komsas good! @pedrobaeza thanks for pointing that out. Flakey eightie now has a blanket and nice warm cup of milk.

@pedrobaeza
Copy link
Member

👍

@pedrobaeza pedrobaeza merged commit 4feb759 into OCA:7.0 Mar 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants