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

How to solve this error in Settings?

By
bg00071
on 12/8/14, 5:49 AM 1,175 views

I'd like to uninstall the module hr_timesheet_invoice, but get this error when trying to open the page in Settings - Installed modules:

OpenERP Server Error

Traceback (most recent call last):
  File "/opt/odoo/testing/odoo/openerp/http.py", line 500, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/testing/odoo/openerp/http.py", line 517, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/testing/odoo/openerp/http.py", line 283, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/testing/odoo/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/testing/odoo/openerp/http.py", line 280, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/testing/odoo/openerp/http.py", line 733, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/testing/odoo/openerp/http.py", line 376, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/testing/odoo/addons/web/controllers/main.py", line 944, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/testing/odoo/addons/web/controllers/main.py", line 927, in _call_kw
    records = getattr(request.session.model(model), method)(*args, **kwargs)
  File "/opt/odoo/testing/odoo/openerp/http.py", line 835, in proxy
    result = meth(cr, request.uid, *args, **kw)
  File "/opt/odoo/testing/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/testing/odoo/openerp/models.py", line 3102, in read
    result = BaseModel.read(records, fields, load=load)
  File "/opt/odoo/testing/odoo/openerp/api.py", line 235, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/testing/odoo/openerp/models.py", line 3134, in read
    self._read_from_database(stored)
  File "/opt/odoo/testing/odoo/openerp/api.py", line 235, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/testing/odoo/openerp/models.py", line 3296, in _read_from_database
    res2 = self._columns[f].get(cr, self._model, ids, f, user, context=context, values=result)
  File "/opt/odoo/testing/odoo/openerp/osv/fields.py", line 1308, in get
    result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
  File "/opt/odoo/testing/odoo/openerp/addons/base/module/module.py", line 186, in _get_desc
    output = publish_string(source=module.description or '', settings_overrides=overrides, writer=MyWriter())
  File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 414, in publish_string
    enable_exit_status=enable_exit_status)
  File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 662, in publish_programmatically
    output = pub.publish(enable_exit_status=enable_exit_status)
  File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 217, in publish
    self.settings)
  File "/usr/lib/python2.7/dist-packages/docutils/readers/__init__.py", line 72, in read
    self.parse()
  File "/usr/lib/python2.7/dist-packages/docutils/readers/__init__.py", line 78, in parse
    self.parser.parse(self.input, document)
  File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/__init__.py", line 172, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 171, in run
    input_source=document['source'])
  File "/usr/lib/python2.7/dist-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/usr/lib/python2.7/dist-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 2676, in indent
    definitionlistitem, blank_finish = self.definition_list_item(context)
  File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 2797, in definition_list_item
    self.nested_parse(indented, input_offset=line_offset, node=definition)
  File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 283, in nested_parse
    node=node, match_titles=match_titles)
  File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/python2.7/dist-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/usr/lib/python2.7/dist-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 2372, in line
    line=self.state_machine.abs_line_number())
  File "/usr/lib/python2.7/dist-packages/docutils/utils/__init__.py", line 235, in severe
    return self.system_message(self.SEVERE_LEVEL, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/docutils/utils/__init__.py", line 193, in system_message
    raise SystemMessage(msg, level)
SystemMessage: <string>:3: (SEVERE/4) Unexpected section title or transition.

========================================================

1
medhabib
On 12/29/14, 10:39 AM

You must delete "========================================================"  from openerp.py

0
bg00071
On 12/10/14, 5:59 AM

The error is somewhere in the module description...

When I made a change in File "/opt/odoo/testing/odoo/openerp/addons/base/module/module.py" (line 186, in _get_desc) I didn't get the error anymore.

 

I changed 

output = publish_string(source=module.description or '', settings_overrides=overrides, writer=MyWriter())

to

output = publish_string(source='', settings_overrides=overrides, writer=MyWriter())

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

2 follower(s)

Stats

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