跳至內容
選單
此問題已被標幟
4 回覆
3020 瀏覽次數
When trying to install in Odoo 16
This error appears, I don't know where the problem is
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1584, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 134, in retrying
    result = func()
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1613, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1810, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 149, in _dispatch
    result = endpoint(**request.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 699, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 46, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 461, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 448, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "", line 2, in button_immediate_install
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 76, in check_and_log
    return method(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 491, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 615, in _button_immediate_function
    registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "", line 2, in new
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 90, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 487, in load_modules
    processed_modules += load_marked_modules(cr, graph,
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 371, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 230, in load_module_graph
    load_data(cr, idref, mode, kind='data', package=package)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 71, in load_data
    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 763, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 829, in convert_xml_import
    obj.parse(doc.getroot())
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 749, in parse
    self._tag_root(de)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 698, in _tag_root
    f(rec)
  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 709, in _tag_root
    raise ParseError(msg) from None  # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
odoo.tools.convert.ParseError: while parsing /mnt/addons-en/account_accountant/views/bank_rec_widget_views.xml:4
Error while validating view near:

                    
Field "problem_description" does not exist in model "account.bank.statement" View error context: {'file': '/mnt/addons-en/account_accountant/views/bank_rec_widget_views.xml', 'line': 4, 'name': 'account.bank.statement.form.bank_rec_widget', 'view': ir.ui.view(913,), 'view.model': 'account.bank.statement', 'view.parent': ir.ui.view(), 'xmlid': 'view_bank_statement_form_bank_rec_widget'} The above server error caused the following client error: RPC_ERROR: Odoo Server Error at makeErrorFromResponse (https://xacta.odoos.work/web/assets/152-81b15e3/web.assets_backend.min.js:974:163) at XMLHttpRequest. (https://xacta.odoos.work/web/assets/152-81b15e3/web.assets_backend.min.js:982:13) at XMLHttpRequest.c (https://xacta.odoos.work/cdn-cgi/scripts/7d0fa10a/cloudflare-static/rocket-loader.min.js:1:9405)



頭像
捨棄
最佳答案

This problem is cause the field  "problem_description" is new on 16.0 on CE version, I fix that set 16.0 on enterprise clone and 16.0 to community. Only ensure that you set the same version of CE and Enterprise.


頭像
捨棄
最佳答案

It looks like the problem is related to a missing field in the model "account.bank.statement". To resolve this issue, you should make sure that the model has all of the necessary fields that are used in the view "account.bank.statement.form.bank_rec_widget". Once the model has all the necessary fields, you should then try to install the module again and it should install successfully.

頭像
捨棄
最佳答案

Ive checked the codebase its not  in the model, but the view still contains the reference... i have reported it to support....in the meantime i think you can comment the field out of the view

頭像
捨棄
最佳答案

Hi,

Did you restarted the odoo service after pulling the latest source code ? Just restart the odoo service and install/upgrade account module.

Thanks

頭像
捨棄
作者

Yes, I did

the error is raised as the service is not restarted properly, can you confirm that service is restarted by stopping the odoo service , then see if odoo is accessible, if not, service is stopped, then start

相關帖文 回覆 瀏覽次數 活動
1
12月 21
2859
1
4月 25
3967
2
8月 24
1667
1
7月 24
2332
3
3月 24
1539