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

Restore database does not clear Reordering Rules error

By
Jeremy
on 5/15/13, 9:18 AM 1,345 views

A user who had entered some reordering rules can no longer see them (error below).

I restored a database from a previous day, but the error is still occuring. I am new to both postgres and openerp. To restore, I stopped openerp; renamed existing database; created new database; recreate tables from sql dump; restart openerp.

Why are the rules still missing?

Client Traceback (most recent call last):
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/addons/web/http.py", line 195, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/addons/web/controllers/main.py", line 1078, in call_kw
    return self._call_kw(req, model, method, args, kwargs)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/addons/web/controllers/main.py", line 1070, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/addons/web/session.py", line 43, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/addons/web/session.py", line 31, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/addons/web/session.py", line 104, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)


Server Traceback (most recent call last):
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/addons/web/session.py", line 90, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/netsvc.py", line 289, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/service/web_services.py", line 614, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/osv/osv.py", line 169, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/osv/osv.py", line 123, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/osv/osv.py", line 179, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/osv/osv.py", line 166, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/addons/procurement/procurement.py", line 540, in default_get
    warehouse = self.pool.get('ir.model.data').get_object(cr, uid, 'stock', 'warehouse0', context)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/addons/base/ir/ir_model.py", line 869, in get_object
    res_model, res_id = self.get_object_reference(cr, uid, module, xml_id)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/tools/cache.py", line 18, in lookup
    r = self.lookup(self2, cr, *args)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/tools/cache.py", line 46, in lookup
    value = d[key] = self.method(self2, cr, *args)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/addons/base/ir/ir_model.py", line 861, in get_object_reference
    data_id = self._get_id(cr, uid, module, xml_id)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/tools/cache.py", line 18, in lookup
    r = self.lookup(self2, cr, *args)
  File "/opt/openerp/openerp-7.0-20130129-000102/openerp/tools/cache.py", line 46, in lookup
    value = d[key] = self.method(self2, cr, *args)
  File "/opt/openerp/openerp-7.0-20130129-000102/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: stock.warehouse0
1

Cyril Gaspard (GEM)

--Cyril Gaspard (GEM)--
4136
| 5 6 8
Paris, France
--Cyril Gaspard (GEM)--

Forum contributor since 2008

Cyril Gaspard (GEM)
On 5/19/13, 12:31 PM

Hi,

xml id "warehouse0" is defined in module stock/stock_data.xml

this xml id seems to be deleted.

update module stock in menu config module.

if you can not, try to update module stock in you server lauch command to restore this value with --update=stock

Bye

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

0 follower(s)

Stats

Asked: 5/15/13, 9:18 AM
Seen: 1345 times
Last updated: 3/16/15, 8:10 AM