dada-p/l10n_se — pull request #1 by kirca (2014-09-30 10:16:23+00:00)
Title: [FIX] module description raises error from docutils

When opening form view of the module there is an error.
Traceback:

:3: (SEVERE/4) Unexpected section title.

This is a module to manage the accounting chart for Sweden in OpenERP
=====================================================================
2014-09-30 09:56:00,399 16726 ERROR test_l10_se_v7 openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/home/kirca/openerp/odoo_new/odoo/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/kirca/openerp/odoo_new/odoo/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/kirca/openerp/odoo_new/odoo/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/kirca/openerp/odoo_new/odoo/openerp/osv/orm.py", line 3703, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/kirca/openerp/odoo_new/odoo/openerp/osv/orm.py", line 3826, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/home/kirca/openerp/odoo_new/odoo/openerp/osv/fields.py", line 1152, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/kirca/openerp/odoo_new/odoo/openerp/addons/base/module/module.py", line 158, in _get_desc
output = publish_string(source=module.description, 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 1136, in indent
elements = self.block_quote(indented, line_offset)
File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 1151, in block_quote
self.nested_parse(blockquote_lines, line_offset, blockquote)
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 2721, in underline
source=src, line=srcline)
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: :3: (SEVERE/4) Unexpected section title.

This is a module to manage the accounting chart for Sweden in OpenERP
=====================================================================
2014-09-30 09:56:00,687 16726 ERROR test_l10_se_v7 openerp.netsvc: :3: (SEVERE/4) Unexpected section title.

This is a module to manage the accounting chart for Sweden in OpenERP
=====================================================================
Traceback (most recent call last):
File "/home/kirca/openerp/odoo_new/odoo/openerp/netsvc.py", line 296, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/kirca/openerp/odoo_new/odoo/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/home/kirca/openerp/odoo_new/odoo/openerp/osv/osv.py", line 190, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/kirca/openerp/odoo_new/odoo/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/kirca/openerp/odoo_new/odoo/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/kirca/openerp/odoo_new/odoo/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/kirca/openerp/odoo_new/odoo/openerp/osv/orm.py", line 3703, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/kirca/openerp/odoo_new/odoo/openerp/osv/orm.py", line 3826, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/home/kirca/openerp/odoo_new/odoo/openerp/osv/fields.py", line 1152, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/home/kirca/openerp/odoo_new/odoo/openerp/addons/base/module/module.py", line 158, in _get_desc
output = publish_string(source=module.description, 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 1136, in indent
elements = self.block_quote(indented, line_offset)
File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 1151, in block_quote
self.nested_parse(blockquote_lines, line_offset, blockquote)
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 2721, in underline
source=src, line=srcline)
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: :3: (SEVERE/4) Unexpected section title.

This is a module to manage the accounting chart for Sweden in OpenERP
=====================================================================