ctmil / odoo-report-tex

Report engine for Odoo. Allows you generate reports based on LaTex.
6 stars 6 forks source link

The value "latex" for the field "ir.actions.report.xml.report_type" is not in the selection" while installing report-latex in odoo v8 #1

Closed morrillo closed 10 years ago

morrillo commented 10 years ago

While installing the module I get the following error message:

Traceback (most recent call last): File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/http.py", line 476, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/http.py", line 495, in dispatch result = self._call_function(_self.params) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/http.py", line 311, in _call_function return checked_call(self.db, args, _kwargs) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/service/model.py", line 113, in wrapper return f(dbname, _args, _kwargs) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/http.py", line 308, in checked_call return self.endpoint(_a, _kw) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/http.py", line 685, in call return self.method(_args, _kw) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/http.py", line 360, in response_wrap response = f(_args, _kw) File "/home/gustavo/work/tst_odooenv/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/addons/web/controllers/main.py", line 987, in call_button action = self._call_kw(model, method, args, {}) File "/home/gustavo/work/tst_odooenv/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/addons/web/controllers/main.py", line 975, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, _kwargs) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/api.py", line 204, in wrapper return old_api(self, _args, _kwargs) File "/home/gustavo/work/tst_odooenv/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/addons/base/module/module.py", line 450, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/api.py", line 204, in wrapper return old_api(self, _args, _kwargs) File "/home/gustavo/work/tst_odooenv/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/addons/base/module/module.py", line 497, in _button_immediate_function registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/modules/registry.py", line 322, in new openerp.modules.load_modules(registry._db, force_demo, status, update_module) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/modules/loading.py", line 357, in load_modules loaded_modules, update_module) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/modules/loading.py", line 263, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/modules/loading.py", line 182, in load_module_graph _load_data(cr, module_name, idref, mode, kind='data') File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/modules/loading.py", line 118, in _load_data tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/tools/convert.py", line 993, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate, report) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/tools/convert.py", line 1083, in convert_xml_import obj.parse(doc.getroot()) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/tools/convert.py", line 945, in parse self._tags[rec.tag](self.cr, rec, n) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/tools/convert.py", line 366, in _tag_report id = self.pool['ir.model.data']._update(cr, self.uid, "ir.actions.report.xml", self.module, res, xml_id, noupdate=self.isnoupdate(data_node), mode=self.mode) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/api.py", line 204, in wrapper return old_api(self, _args, _kwargs) File "/home/gustavo/work/tst_odooenv/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/addons/base/ir/ir_model.py", line 1027, in _update res_id = model_obj.create(cr, uid, values, context=context) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/api.py", line 204, in wrapper return old_api(self, _args, _kwargs) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/addons/report_latex/ir_report.py", line 88, in create res = super(ReportXML, self).create(cursor, user, vals, context) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/api.py", line 204, in wrapper return old_api(self, _args, _kwargs) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/api.py", line 297, in old_api result = method(recs, _args, _kwargs) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/models.py", line 3895, in create record = self.browse(self._create(old_vals)) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/api.py", line 202, in wrapper return new_api(self, _args, _kwargs) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/api.py", line 429, in new_api result = method(self._model, cr, uid, _args, _kwargs) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/models.py", line 4025, in _create self._check_selection_field_value(cr, user, field, vals[field], context=context) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/api.py", line 204, in wrapper return old_api(self, _args, *_kwargs) File "/home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/models.py", line 2260, in _check_selection_fieldvalue ('The value "%s" for the field "%s.%s" is not in the selection') % (value, self._name, field)) ParseError: "ValidateError The value "latex" for the field "ir.actions.report.xml.report_type" is not in the selection" while parsing /home/gustavo/work/sba/dev/local/lib/python2.7/site-packages/openerp-9.0alpha1-py2.7.egg/openerp/addons/report_latex/data.xml:11, near

csrocha commented 10 years ago

Updated to Odoo 8.0 resolve this issue.