Comments (6)
No idea. I suppose tonight. But you should work directly with git to avoid these questions.
from reporting-engine.
Yeah, you're right, see 96ac860
from reporting-engine.
Update your code. It was fixed in ac3a648
from reporting-engine.
Are you sure that this is really fixed?
I still get this error:
2016-08-23 12:37:09,675 19647 ERROR test openerp.service.report: Exception: type object 'report_xls' has no attribute 'xls_types'
Traceback (most recent call last):
File "/home/anass/Documents/workspace/odoo/odoo8/openerp/service/report.py", line 93, in go
result, format = openerp.report.render_report(cr, uid, ids, object, datas, context)
File "/home/anass/Documents/workspace/odoo/odoo8/openerp/report/__init__.py", line 40, in render_report
return registry['ir.actions.report.xml'].render_report(cr, uid, ids, name, data, context)
File "/home/anass/Documents/workspace/odoo/odoo8/openerp/api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "/home/anass/Documents/workspace/odoo/odoo8/openerp/addons/base/ir/ir_actions.py", line 156, in render_report
return new_report.create(cr, uid, res_ids, data, context)
File "/home/anass/.local/share/Odoo/addons/8.0/report_xls/report_xls.py", line 118, in create
return self.create_source_xls(cr, uid, ids, data, context)
File "/home/anass/.local/share/Odoo/addons/8.0/report_xls/report_xls.py", line 148, in create_source_xls
self.generate_xls_report(_p, _xs, data, objs, wb)
File "/home/anass/.local/share/Odoo/addons/8.0/account_financial_report_webkit_xls/report/partner_ledger_xls.py", line 78, in generate_xls_report
row_data = self.xls_row_template(c_specs, [x[0] for x in c_specs])
File "/home/anass/.local/share/Odoo/addons/8.0/report_xls/report_xls.py", line 213, in xls_row_template
'write_cell_func': report_xls.xls_types[c[3]]})
AttributeError: type object 'report_xls' has no attribute 'xls_types'
Logically, at least xls_types
should be defined inside report_xls
class. Except if you have another class that you inherit from and has this property (which is report_sxw
, but it doesn't have this property).
I have fixed the issue by adding this variable inside the class:
xls_types = xls_types
from reporting-engine.
Thanks, @pedrobaeza!
When should this commit be pushed to apps.odoo.com?
from reporting-engine.
I have no issue working with git, but our client has a server that we don't have access to, so we depend entirely on apps.odoo.com!
from reporting-engine.
Related Issues (20)
- [14.0] report_py3o print error HOT 3
- [16.0] [BUG] report_routes with no docids
- report_py3o in Odoo.sh HOT 2
- [16.0] [BUG] report_substitute not working on email templates HOT 2
- [14] get_report_xlsx() missing 4 required positional arguments HOT 2
- [16.0]sql_request_abstract widget ACE causing Web issues HOT 7
- View Joining to "_unknown" Relation Error HOT 7
- Migration to version 17.0 HOT 14
- The font is changed to "Noto Sans CJK SC Regular" which is different from the font designed in the template file. HOT 1
- [14.0] BI SQL Editor - Materialize View Deleted After Odoo.sh Rebuild HOT 3
- Not able to use report_xlsx version 17.0 HOT 5
- Package odoo15-addon-report-xlsx not on Pipy HOT 3
- v16 Report specific watermark does not get pulled from duplicated report HOT 1
- [16.0] report_xml: Support for attributes
- Extend module report_xlsx to use hand-made class
- [14.0] BI_SQL - Error in Pivot View HOT 6
- Does not work on Odoo 14 HOT 4
- BI_VIEW_EDITOR for multi-company HOT 2
- bi_view_editor: wrong generation of ID column HOT 1
- LOTemplate document generator to create ODT, DOCX, PDF from a template (DOCX or ODT) and a json file.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reporting-engine.