muk-it / muk_web

MuK Odoo Web Modules
GNU Lesser General Public License v3.0
109 stars 232 forks source link

can't access settings #84

Closed MosabWadea closed 5 years ago

MosabWadea commented 5 years ago

hi when I enable the MuK Web Branding module I can't access Odoo General Settings anymore.. and I get this error message:


https://<server-url>/web/content/2084-f8d6f7a/web.assets_backend.js:1044
Traceback:
TypeError: Cannot read property 'attr' of undefined
    at Class.setIDForLabel (https://<server-url>/web/content/2084-f8d6f7a/web.assets_backend.js:1044:536)
    at Class.setIDForLabel (https://<server-url>/web/content/2084-f8d6f7a/web.assets_backend.js:1071:58)
    at Class.prototype.(anonymous function) [as setIDForLabel] (https://<server-url>/web/content/2083-4f91542/web.assets_common.js:3538:488)
    at Class._setIDForLabel (https://<server-url>/web/content/2084-f8d6f7a/web.assets_backend.js:1647:132)
    at Class._postProcessField (https://<server-url>/web/content/2084-f8d6f7a/web.assets_backend.js:1617:66)
    at https://<server-url>/web/content/2084-f8d6f7a/web.assets_backend.js:1580:271
    at https://<server-url>/web/content/2083-4f91542/web.assets_common.js:802:681
    at fire (https://<server-url>/web/content/2083-4f91542/web.assets_common.js:796:299)
    at Object.add [as done] (https://<server-url>/web/content/2083-4f91542/web.assets_common.js:797:467)
    at Array.<anonymous> (https://<server-url>/web/content/2083-4f91542/web.assets_common.js:802:649)

in the image bellow you can see what branding modules I have installed: image

MosabWadea commented 5 years ago

and when I tried to uninstall again I get this error:


Error:
Odoo Server Error

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 654, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 312, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 696, in dispatch
    result = self._call_function(**self.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 344, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 337, in checked_call
    result = self.endpoint(*a, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 939, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 966, in call_button
    action = self._call_kw(model, method, args, {})
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 954, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 749, in call_kw
    return _call_kw_multi(method, model, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 736, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/wizard/base_module_uninstall.py", line 60, in action_uninstall
    return modules.button_immediate_uninstall()
  File "<decorator-gen-64>", line 2, in button_immediate_uninstall
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
    return method(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 586, in button_immediate_uninstall
    return self._button_immediate_function(type(self).button_uninstall)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 561, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 473, in load_modules
    getattr(py_module, uninstall_hook)(cr, registry)
  File "<string>", line 62, in _uninstall_rebrand_system
  File "/usr/lib/python3.6/ast.py", line 85, in literal_eval
    return _convert(node_or_string)
  File "/usr/lib/python3.6/ast.py", line 61, in _convert
    return list(map(_convert, node.elts))
  File "/usr/lib/python3.6/ast.py", line 59, in _convert
    return tuple(map(_convert, node.elts))
  File "/usr/lib/python3.6/ast.py", line 84, in _convert
    raise ValueError('malformed node or string: ' + repr(node))
ValueError: malformed node or string: <_ast.Call object at 0x7f030c777f98>```
gaikaz commented 5 years ago

The first error you described was fixed, I think. Here: #79 You should be fine updating like described in the issue linked.

The second error looks very similar to issue here: https://github.com/muk-it/muk_misc/issues/9

MosabWadea commented 5 years ago

great Thanks @gaikaz

I will follow the other issues ..