Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Can´t install custom modules odoo 8.0

By
leonardo chianea
on 10/3/14, 5:12 PM 2,488 views

When I try to install a custom module for argentina localization i have the following error...any clue will be appreciated.

OpenERP Server Error

Traceback (most recent call last): File "/opt/odoo/odoo-server/openerp/http.py", line 500, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/odoo-server/openerp/http.py", line 517, in dispatch result = self._call_function(**self.params) File "/opt/odoo/odoo-server/openerp/http.py", line 283, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/service/model.py", line 113, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/http.py", line 280, in checked_call return self.endpoint(*a, **kw) File "/opt/odoo/odoo-server/openerp/http.py", line 733, in __call__ return self.method(*args, **kw) File "/opt/odoo/odoo-server/openerp/http.py", line 376, in response_wrap response = f(*args, **kw) File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 948, in call_button action = self._call_kw(model, method, args, {}) File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 936, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/addons/base/res/res_config.py", line 584, in execute action = self._install_modules(cr, uid, to_install, context=context) File "/opt/odoo/odoo-server/openerp/addons/base/res/res_config.py", line 55, in _install_modules result = ir_module.button_immediate_install(cr, uid, to_install_ids, context=context) File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/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 "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/addons/base/module/module.py", line 499, in _button_immediate_function config = registry['res.config'].next(cr, uid, [], context=context) or {} File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/addons/base/res/res_config.py", line 119, in next return self._next(cr, uid, context=context) File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/addons/base/res/res_config.py", line 103, in _next res = next.action_launch(context=context) File "/opt/odoo/odoo-server/openerp/api.py", line 235, in wrapper return new_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/api.py", line 552, in new_api result = method(self._model, cr, uid, self.ids, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_actions.py", line 1118, in action_launch res = self.pool[act_type].read(cr, uid, [wizard.action_id.id], [], context=context)[0] File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_actions.py", line 321, in read results = super(ir_actions_act_window, self).read(cr, uid, ids, fields=fields, context=context, load=load) File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/models.py", line 3109, in read result = BaseModel.read(records, fields, load=load) File "/opt/odoo/odoo-server/openerp/api.py", line 235, in wrapper return new_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/models.py", line 3141, in read self._read_from_database(stored) File "/opt/odoo/odoo-server/openerp/api.py", line 235, in wrapper return new_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/models.py", line 3303, in _read_from_database res2 = self._columns[f].get(cr, self._model, ids, f, user, context=context, values=result) File "/opt/odoo/odoo-server/openerp/osv/fields.py", line 1308, in get result = self._fnct(obj, cr, uid, ids, name, self._arg, context) File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_actions.py", line 262, in _search_view 'search', context=context) File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/addons/account/installer.py", line 118, in fields_view_get res = super(account_installer, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=False) File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/models.py", line 1591, in fields_view_get xarch, xfields = View.postprocess_and_fields(cr, uid, self._name, etree.fromstring(result['arch']), view_id, context=ctx) File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_ui_view.py", line 804, in postprocess_and_fields fields = Model.fields_get(cr, user, None, context) File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/addons/base/res/res_config.py", line 371, in fields_get cr, uid, fields, context, write_access) File "/opt/odoo/odoo-server/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/models.py", line 3054, in fields_get res[fname] = field.get_description(recs.env) File "/opt/odoo/odoo-server/openerp/fields.py", line 544, in get_description value = value(env) File "/opt/odoo/odoo-server/openerp/fields.py", line 561, in _description_searchable column = env[self.model_name]._columns.get(self.name) File "/opt/odoo/odoo-server/openerp/api.py", line 720, in __getitem__ return self.registry[model_name]._browse(self, ()) File "/opt/odoo/odoo-server/openerp/modules/registry.py", line 100, in __getitem__ return self.models[model_name] KeyError: 'account.installer'

1
Robert D Winchester
On 10/5/14, 3:15 PM

The error is pointed out in the last entry in the jumble of text you posted:
    File "/opt/odoo/odoo-server/openerp/modules/registry.py", line 100, in __getitem__ return self.models[model_name] KeyError: 'account.installer

So, going to line 100 in registry.py we see this code:
 98        def __getitem__(self, model_name):
 99            """ Return the model with the given name or raise KeyError if it doesn't exist."""
100            return self.models[model_name]
This would suggest that the error "Key Error" means that something is missing.  Are you sure that the module exists in the correct place where Odoo is looking for it?

0
leonardo chianea
On 10/6/14, 4:04 PM

I found the solution, thanks robert I I installed some dependencies missing from phyton

Hi, what dependencies u added to solve this error?

divya
on 2/9/15, 2:22 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/3/14, 5:12 PM
Seen: 2488 times
Last updated: 3/16/15, 8:10 AM