-
-
Notifications
You must be signed in to change notification settings - Fork 618
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][account_financial_report_qweb] Fix ImportError. #229
[FIX][account_financial_report_qweb] Fix ImportError. #229
Conversation
@@ -50,6 +50,7 @@ Contributors | |||
* Francesco Apruzzese <[email protected]> | |||
* Lorenzo Battistini <[email protected]> | |||
* Julien Coux <[email protected]> | |||
* Jairo Llopis <[email protected]> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This contribution is very little to include you here. In fact, it's a patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, but it's mine 😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git blame will know that, but here we put only relevant contributors, or the list would be big for all the modules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems important to me. 😛
Bump version number |
Please, wrap the import xslxwriter at a lower level. Note that I've never had an import error since I'm using pip to properly install the addons I need. |
057f978
to
d5e8aa2
Compare
"python": [ | ||
"xlsxwriter", | ||
], | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICS xslxwriter is not a direct dependency of afr_qweb. It is a dependency of report_xslx, so it should not be declared here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the patch and put the try lower in the stack. Please review that, you probably missed that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yajo indeed I had not seen that part
account-financial-reporting/account_financial_report_qweb/report/abstract_report_xlsx.py
Line 38 in 58c559b
def create_xlsx_report(self, ids, data, report): |
IMO it is not the best way to do it because this override of create_xlsx_report
does not call super(). @jcoux I think reporting-engine must be extended to support options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it should be split in 2 modules: one for the QWeb part, and the other for XLSX support extension.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the job for another PR. 😄
d5e8aa2
to
289bc21
Compare
It was happening when `xlsxwriter` python module was not available. Bump version, add external dependencies.
289bc21
to
7eb797a
Compare
This one should be fast tracked IMHO. |
Ping! 😊 |
💤 |
@sbidoul any feedback on this? |
@pedrobaeza @yajo I created #241. I'd prefer to get that fixed instead of this PR. What do you think? |
OK, but if the solution is not still done, I would vote for merging this meanwhile |
It was happening when
xlsxwriter
python module was not available.@Tecnativa