Errors in __openerp__.py

Bug #1286526 reported by Med Said BARA
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Advanced Project Management
New
Undecided
Unassigned

Bug Description

After upgrading to Rev. 130, getting the following error:

2014-02-28 17:07:56,789 20742 ERROR DevDB openerp.tools.safe_eval: Cannot eval '# -*- coding: utf-8 -*-\n##############################################################################\n#\n# Sistemas ADHOC - ADHOC SA\n# https://launchpad.net/~sistemas-adhoc\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as\n# published by the Free Software Foundation, either version 3 of the\n# License, or (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# You should have received a copy of the GNU Affero General Public License\n# along with this program. If not, see <http://www.gnu.org/licenses/>.\n#\n##############################################################################\n\n{\n \'name\': \'Project Issue Product\',\n \'version\': \'1.0\',\n \'category\': \'Projects & Services\',\n \'sequence\': 14,\n \'summary\': \'\',\n \'description\': """\nProject Issue Product\n=====================\nAdds product field on Issues (M2O) and issue field on products (O2M)\n """,\n \'author\': \'Sistemas ADHOC\',\n \'website\': \'www.sistemasadhoc.com.ar\',\n \'images\': [\n ],\n \'depends\': [\n \'project_issue\',\n \'product\',\n ],\n \'data\': [\n \'project_issue_view.xml\',\n \'product_view.xml\',\n \'security/ir.model.access.csv\',\n ],\n \'demo\': [\n ],\n \'test\': [\n ],\n \'installable\': True,\n \'auto_install\': False,\n \'application\': False,\n}\n# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:\n\n# -*- coding: utf-8 -*-\n##############################################################################\n#\n# Copyright (C) 2011 Eficent (<http://www.eficent.com/>)\n# Jordi Ballester Alomar <email address hidden>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as\n# published by the Free Software Foundation, either version 3 of the\n# License, or (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n#\n# You should have received a copy of the GNU Affero General Public License\n# along with this program. If not, see <http://www.gnu.org/licenses/>.\n#\n##############################################################################\n\n\n{\n \'name\': \'Project Issue Product\',\n \'version\': \'0.1\',\n \'category\': \'Tools\',\n \'complexity\': \'easy\',\n \'description\': """\nAdds product field on Issues (M2O) and issue field on products (O2M)\n """,\n \'author\': \'Sistemas ADHOC\',\n \'depends\': [\'project_issue\',\'product\'],\n \'data\': [\n \'project_issue_view.xml\',\n \'product_view.xml\',\n \'security/ir.model.access.csv\',\n ],\n \'installable\': True,\n \'auto_install\': True,\n \'category\': \'Hidden\',\n}\n# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:\n'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/tools/safe_eval.py", line 241, in safe_eval
    return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "/usr/lib/pymodules/python2.7/openerp/tools/safe_eval.py", line 107, in test_expr
    code_obj = compile(expr, "", mode)
  File "<string>", line 78
    {
    ^
SyntaxError: invalid syntax
-----------------------------------------------------------------------------------------------------------------------------------------------

I've tried to correct __openerp__.py of the project_issue_product and i encounter an other error in project_task_phase __openerp__.py file ( Unexpected section title):

2014-02-28 17:17:15,881 20740 DEBUG DevDB openerp.addons.web.http: <--
{'error': {'code': 200,
           'data': {'debug': 'Client Traceback (most recent call last):\n File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 204, in dispatch\n response["result"] = method(self, **self.params)\n File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1128, in call_kw\n return self._call_kw(req, model, method, args, kwargs)\n File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1114, in _call_kw\n records = req.session.model(model).read(*args, **kwargs)\n File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 42, in proxy\n result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)\n File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 30, in proxy_method\n result = self.session.send(self.service_name, method, *args)\n File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 103, in send\n raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)\n\n\nServer Traceback (most recent call last):\n File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 89, in send\n return openerp.netsvc.dispatch_rpc(service_name, method, args)\n File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 292, in dispatch_rpc\n result = ExportService.getService(service_name).dispatch(method, params)\n File "/usr/lib/pymodules/python2.7/openerp/addons/hotdebug/hook.py", line 124, in wrapped\n return fn(*args, **kw)\n File "/usr/lib/pymodules/python2.7/openerp/addons/hotdebug/hook.py", line 67, in wrapped\n return fn(*args, **kw)\n File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch\n res = fn(db, uid, *params)\n File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 190, in execute_kw\n return self.execute(db, uid, obj, method, *args, **kw or {})\n File "/usr/lib/pymodules/python2.7/openerp/addons/anybus_trigger_user/trigger.py", line 85, in execute\n res = openerp_execute(self, db, uid, obj, method, *args, **kw)\n File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 132, in wrapper\n return f(self, dbname, *args, **kwargs)\n File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 199, in execute\n res = self.execute_cr(cr, uid, obj, method, *args, **kw)\n File "/usr/lib/pymodules/python2.7/openerp/addons/audittrail/audittrail.py", line 522, in execute_cr\n return fct_src(cr, uid, model, method, *args, **kw)\n File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 187, in execute_cr\n return getattr(object, method)(cr, uid, *args, **kw)\n File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3657, in read\n result = self._read_flat(cr, user, select, fields, context, load)\n File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3778, in _read_flat\n res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)\n File "/usr/lib/pymodules/python2.7/openerp/osv/fields.py", line 1142, in get\n result = self._fnct(obj, cr, uid, ids, name, self._arg, context)\n File "/usr/lib/pymodules/python2.7/openerp/addons/base/module/module.py", line 156, in _get_desc\n output = publish_string(source=module.description, settings_overrides=overrides, writer=MyWriter())\n File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 401, in publish_string\n enable_exit_status=enable_exit_status)\n File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 649, in publish_programmatically\n output = pub.publish(enable_exit_status=enable_exit_status)\n File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 211, in publish\n self.settings)\n File "/usr/lib/python2.7/dist-packages/docutils/readers/__init__.py", line 69, in read\n self.parse()\n File "/usr/lib/python2.7/dist-packages/docutils/readers/__init__.py", line 75, in parse\n self.parser.parse(self.input, document)\n File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/__init__.py", line 157, in parse\n self.statemachine.run(inputlines, document, inliner=self.inliner)\n File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 170, in run\n input_source=document[\'source\'])\n File "/usr/lib/python2.7/dist-packages/docutils/statemachine.py", line 237, in run\n context, state, transitions)\n File "/usr/lib/python2.7/dist-packages/docutils/statemachine.py", line 458, in check_line\n return method(match, context, next_state)\n File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 1110, in indent\n elements = self.block_quote(indented, line_offset)\n File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 1125, in block_quote\n self.nested_parse(blockquote_lines, line_offset, blockquote)\n File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 284, in nested_parse\n node=node, match_titles=match_titles)\n File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 195, in run\n results = StateMachineWS.run(self, input_lines, input_offset)\n File "/usr/lib/python2.7/dist-packages/docutils/statemachine.py", line 237, in run\n context, state, transitions)\n File "/usr/lib/python2.7/dist-packages/docutils/statemachine.py", line 458, in check_line\n return method(match, context, next_state)\n File "/usr/lib/python2.7/dist-packages/docutils/parsers/rst/states.py", line 2703, in underline\n source=src, line=srcline)\n File "/usr/lib/python2.7/dist-packages/docutils/utils.py", line 232, in severe\n return self.system_message(self.SEVERE_LEVEL, *args, **kwargs)\n File "/usr/lib/python2.7/dist-packages/docutils/utils.py", line 190, in system_message\n raise SystemMessage(msg, level)\nSystemMessage: <string>:3: (SEVERE/4) Unexpected section title.\n\nProject Task Phase\n==================\n',
                    'fault_code': u'<string>:3: (SEVERE/4) Unexpected section title.\n\nProject Task Phase\n==================',
                    'type': 'server_exception'},
           'message': 'OpenERP Server Error'},
 'id': 'r79',
 'jsonrpc': '2.0'}

---------------------------------------------------------------
Would you please check the all the __openerp__.py files in Rev. 130

Revision history for this message
Med Said BARA (diassynthesis) wrote :

Running into troubles since Revno 130.

Do you hear me ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.