rnrbarbosa / odoo-loans

Odoo Loans Management
11 stars 27 forks source link

ParseError: "ir.sequence.type" #4

Open basmawederni opened 8 years ago

basmawederni commented 8 years ago

Odoo Server Error

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 643, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 680, in dispatch result = self._call_function(_self.params) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 316, in _call_function return checked_call(self.db, args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper return f(dbname, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 309, in checked_call result = self.endpoint(_a, _kw) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 959, in call return self.method(_args, _kw) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 509, in response_wrap response = f(_args, _kw) File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 896, in call_button action = self._call_kw(model, method, args, {}) File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 884, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 250, in wrapper return old_api(self, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 459, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 250, in wrapper return old_api(self, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 533, in _button_immediate_function registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 386, in new openerp.modules.load_modules(registry._db, force_demo, status, update_module) File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 338, in load_modules loaded_modules, update_module) File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 237, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 156, in load_module_graph _load_data(cr, module_name, idref, mode, kind='data') File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 98, in _load_data tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 851, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate, report) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 938, in convert_xml_import obj.parse(doc.getroot(), mode=mode) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 801, in parse self.parse(rec, mode) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 804, in parse self._tags[rec.tag](self.cr, rec, de, mode=mode) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 630, in _tag_record model = self.pool[rec_model] File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 84, in getitem return self.models[model_name] ParseError: "ir.sequence.type" while parsing /usr/lib/python2.7/dist-packages/openerp/addons/medical/views/medical_sequence.xml:6, near

Medical Patient medical.patient
rjpathan commented 8 years ago

Above posted error seems to be in the module "medical".

NOTE : This module is for Odoo 8.

basmawederni commented 8 years ago

when I execute a module I found the following error: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 539, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 576, in dispatch result = self._call_function(_self.params) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 312, in _call_function return checked_call(self.db, args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper return f(dbname, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 309, in checked_call return self.endpoint(_a, _kw) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 805, in call return self.method(_args, _kw) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 405, in response_wrap response = f(_args, _kw) File "/home/basma/Bureau/odoo-8.0/addons/web/controllers/main.py", line 948, in call_button action = self._call_kw(model, method, args, {}) File "/home/basma/Bureau/odoo-8.0/addons/web/controllers/main.py", line 936, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 534, in button_immediate_upgrade return self._button_immediate_function(cr, uid, ids, self.button_upgrade, context=context) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 495, in _button_immediate_function registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 370, in new openerp.modules.load_modules(registry._db, force_demo, status, update_module) File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 351, in load_modules force, status, report, loaded_modules, update_module) File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 255, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 176, in load_module_graph _load_data(cr, module_name, idref, mode, kind='data') File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 118, in _load_data tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 900, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate, report) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 986, in convert_xml_import obj.parse(doc.getroot(), mode=mode) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 852, in parse self._tags[rec.tag](self.cr, rec, n, mode=mode) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 762, in _tag_record id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context ) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_model.py", line 1065, in _update res_id = model_obj.create(cr, uid, values, context=context) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_ui_view.py", line 255, in create context=context) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 372, in old_api result = method(recs, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 4093, in create record = self.browse(self._create(old_vals)) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 266, in wrapper return new_api(self, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 508, in new_api result = method(self._model, cr, uid, _args, _old_kwargs) File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 4284, in _create recs._validate_fields(vals) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 266, in wrapper return new_api(self, _args, *_kwargs) File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 1271, in _validate_fields raise ValidationError('\n'.join(errors)) ParseError: "ValidateError Field(s) arch failed against a constraint: Invalid view definition

Error details: Model not found: openacademy.session

Error context: View session.form [view_id: 400, xml_id: n/a, model: openacademy.session, parent_id: n/a]" while parsing /home/basma/Bureau/odoo-8.0/addons/openacademy/views/openacademy.xml:52, near

session.form openacademy.session

and here is my code: <?xml version="1.0" encoding="UTF-8"?>

course.form openacademy.course
This is an example of notebooks ```
course.search openacademy.course Courses openacademy.course form tree,form

Create the first course

session.form openacademy.session
Sessions openacademy.session form tree,form
```