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

Cannot log in

By
Jorge Andres Vaccaro Martín
on 7/15/14, 1:58 PM 868 views

Hello, 

    I just had a nasty error trying to log in to my OpenERPv7 Instance, the traceback is as follows:

Server Traceback (most recent call last): File "/home/ubuntu/openerp-7/openerp/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/home/ubuntu/openerp-7/openerp/netsvc.py", line 296, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/ubuntu/openerp-7/openerp/service/web_services.py", line 433, in dispatch return fn(*params) File "/home/ubuntu/openerp-7/openerp/service/web_services.py", line 444, in exp_authenticate res_users = pooler.get_pool(db).get('res.users') File "/home/ubuntu/openerp-7/openerp/pooler.py", line 49, in get_pool return get_db_and_pool(db_name, force_demo, status, update_module)[1] File "/home/ubuntu/openerp-7/openerp/pooler.py", line 33, in get_db_and_pool registry = RegistryManager.get(db_name, force_demo, status, update_module) File "/home/ubuntu/openerp-7/openerp/modules/registry.py", line 203, in get update_module) File "/home/ubuntu/openerp-7/openerp/modules/registry.py", line 233, in new openerp.modules.load_modules(registry.db, force_demo, status, update_module) File "/home/ubuntu/openerp-7/openerp/modules/loading.py", line 350, in load_modules force, status, report, loaded_modules, update_module) File "/home/ubuntu/openerp-7/openerp/modules/loading.py", line 256, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/home/ubuntu/openerp-7/openerp/modules/loading.py", line 188, in load_module_graph load_data(module_name, idref, mode) File "/home/ubuntu/openerp-7/openerp/modules/loading.py", line 76, in <lambda> load_data = lambda *args: _load_data(cr, *args, kind='data') File "/home/ubuntu/openerp-7/openerp/modules/loading.py", line 124, in _load_data tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report) File "/home/ubuntu/openerp-7/openerp/tools/convert.py", line 954, in convert_xml_import obj.parse(doc.getroot()) File "/home/ubuntu/openerp-7/openerp/tools/convert.py", line 847, in parse self._tags[rec.tag](self.cr, rec, n) File "/home/ubuntu/openerp-7/openerp/tools/convert.py", line 805, in _tag_record f_val = self.id_get(cr, f_ref) File "/home/ubuntu/openerp-7/openerp/tools/convert.py", line 824, in id_get res = self.model_id_get(cr, id_str) File "/home/ubuntu/openerp-7/openerp/tools/convert.py", line 833, in model_id_get return model_data_obj.get_object_reference(cr, self.uid, mod, id_str) File "/home/ubuntu/openerp-7/openerp/tools/cache.py", line 18, in lookup r = self.lookup(self2, cr, *args) File "/home/ubuntu/openerp-7/openerp/tools/cache.py", line 46, in lookup value = d[key] = self.method(self2, cr, *args) File "/home/ubuntu/openerp-7/openerp/addons/base/ir/ir_model.py", line 869, in get_object_reference data_id = self._get_id(cr, uid, module, xml_id) File "/home/ubuntu/openerp-7/openerp/tools/cache.py", line 18, in lookup r = self.lookup(self2, cr, *args) File "/home/ubuntu/openerp-7/openerp/tools/cache.py", line 46, in lookup value = d[key] = self.method(self2, cr, *args) File "/home/ubuntu/openerp-7/openerp/addons/base/ir/ir_model.py", line 862, in _get_id raise ValueError('No such external ID currently defined in the system: %s.%s' % (module, xml_id)) ValueError: No such external ID currently defined in the system: base.USD

 

How can I fix this error? why is a base module having this sort of problem? the worst part is that I can no longer access and therefore cannot make any quotations

0

Nehal

--Nehal--
2090
| 5 2 8
Ahmadabad, India
--Nehal--
Nehal
On 7/16/14, 12:03 AM

Hi,

You might have deleted the currency : "USD" (demo data) which is used as a reference in other module. When you install demo data, make sure that you are not deleting it.

As a solution, you can upgrade the "base" module.

0

Hello Nehal ! thank you so much for the answer... exactly how can I do that considering that I can't even login with the admin user?

Hello Nehal ! thank you so much for the answer... exactly how can I do that considering that I can't even login with the admin user?

Jorge Andres Vaccaro Martín
on 7/16/14, 5:18 PM
0

Ben Bernard

--Ben Bernard--
1083
| 4 3 6
Jakarta, Indonesia
--Ben Bernard--
Ben Bernard
On 7/17/14, 1:47 AM

Hello Nehal ! thank you so much for the answer... exactly how can I do that considering that I can't even login with the admin user?

You can start the server with --update / --init argument, such as

openerp-server --update=MODULE_TO_UPDATE --database=YOUR_DB_TO_UPDATE

where MODULE_TO_UPDATE is module name, such as 'base'. You can also assign 'all' to MODULE_TO_UPDATE to update all module. And YOUR_DB_TO_UPDATE is your faulty database name. 

 

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: 7/15/14, 1:58 PM
Seen: 868 times
Last updated: 3/16/15, 8:10 AM