This question has been flagged
2 Replies
3450 Views

I have an error almost identical to question 850/how-to-install-mrp-application-error-regarding-resourcetimesheet_group1/

In this case, the traceback is:

Client Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 195, in dispatch
    response["result"] = method(self, **self.params)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1082, in call_button
    action = self._call_kw(req, model, method, args, {})
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1070, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 40, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 28, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 101, in send
    raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)


Server Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 87, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 281, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 614, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 169, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 123, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 179, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 166, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/module/module.py", line 425, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/module/module.py", line 476, in _button_immediate_function
    _, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/usr/lib/pymodules/python2.7/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 214, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 349, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 260, 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/pymodules/python2.7/openerp/modules/loading.py", line 196, in load_module_graph
    load_demo(module_name, idref, mode)
  File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 78, in <lambda>
    load_demo = lambda *args: _load_data(cr, *args, kind='demo')
  File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 128, in _load_data
    tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
  File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 954, in convert_xml_import
    obj.parse(doc.getroot())
  File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 847, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 805, in _tag_record
    f_val = self.id_get(cr, f_ref)
  File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 824, in id_get
    res = self.model_id_get(cr, id_str)
  File "/usr/lib/pymodules/python2.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 "/usr/lib/pymodules/python2.7/openerp/tools/cache.py", line 18, in lookup
    r = self.lookup(self2, cr, *args)
  File "/usr/lib/pymodules/python2.7/openerp/tools/cache.py", line 46, in lookup
    value = d[key] = self.method(self2, cr, *args)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_model.py", line 861, in get_object_reference
    data_id = self._get_id(cr, uid, module, xml_id)
  File "/usr/lib/pymodules/python2.7/openerp/tools/cache.py", line 18, in lookup
    r = self.lookup(self2, cr, *args)
  File "/usr/lib/pymodules/python2.7/openerp/tools/cache.py", line 46, in lookup
    value = d[key] = self.method(self2, cr, *args)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_model.py", line 854, 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: resource.timesheet_group1

I have uninstalled MRP, restarted openerp, updated the resource module, and again restarted openerp, however the error is always the same. I cannot install the MRP module. Using demo data with additional modules: Invoices, Sales, Purchases, Stock.

The Resource module is installed without demo data, and I cannot see how to change this. The MRP moduled is going to beinstalled with demo data, however it is not installed. Sorry, "my karma is insufficient" to upload screenshots, nor links.

UPDATE. I have created a new database, with no flag "Install demo data". I have installed no new modules. The first thing I have done is to install MRP module. I got the same error as before.

Avatar
Discard

Uncheck the Demo Data for MRP. Or try to reinstall resource with demo Data. Keep me informed.

Author

I cannot modify that checkbox! It's read-only, so I don't know how to avoid installing demo data.

Can you use PgAdmin III to browse the Database ? There is maybe a solution with PgAdmin III.

There is probably a problem with the revision of OpenERP 7.0 you are using. Update to the last one.

Author

I have destroyed the database, uninstalled openerp 7.0-20121227-075624, downloaded last version 20140408-231240, reinstalled ...and I still have the same problem !?!?! using .deb file for installation

Did you reinstalled with Demo Data ? Do you have PgAdmin III installed ?

Strange, very strange, how this can be possible? Why mrp module installation done with demo data, when the others modules installed without Demo Data? Are you missing something you don't report in question or comments? See in your openerp-server.conf which values stated for "with_demo=" and "demo={}" parameteres.

UPDATE ir_module_module set demo=True where name='resource'; and then update module resource, so the demo data is installed, the problem resolved.

Best Answer

set without_demo = True in openerp-server.conf file

Avatar
Discard

or UPDATE ir_module_module set demo=True where name='resource'; and then update module resource, so the demo data is installed, the problem resolved.

Best Answer

hi;

Are you trying to install mrp with demo data ?

Check if the resource module is installed, and with demo data.

See the following, to know if Demo Data are installed or not: Is the "checkbox" checked or inchecked?

image description

Avatar
Discard
Author

Hi, the resource module is installed. How can I know if there are demo data?