Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
1942 Vistas

Hello, guys. I'm facing the following error installing this module: l10n_do_accounting (github.com/indexa-git/l10n-dominicana)

Traceback (most recent call last):
  File "/home/odoo/odoo/odoo/http.py", line 1770, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/odoo/service/model.py", line 133, in retrying
    result = func()
             ^^^^^^
  File "/home/odoo/odoo/odoo/http.py", line 1797, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/odoo/http.py", line 2001, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
    result = endpoint(**request.params)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/odoo/http.py", line 725, in route_wrapper
    result = endpoint(self, *args, **params_ok)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/addons/web/controllers/dataset.py", line 28, in call_button
    action = self._call_kw(model, method, args, kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/odoo/api.py", line 468, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/odoo/api.py", line 453, in _call_kw_multi
    result = method(recs, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/odoo/addons/base/models/ir_module.py", line 75, in check_and_log
    return method(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/odoo/addons/base/models/ir_module.py", line 466, in button_immediate_install
    return self._button_immediate_function(self.env.registry[self._name].button_install)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/odoo/addons/base/models/ir_module.py", line 590, in _button_immediate_function
    registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/odoo/modules/registry.py", line 113, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/home/odoo/odoo/odoo/modules/loading.py", line 480, in load_modules
    processed_modules += load_marked_modules(env, graph,
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/odoo/modules/loading.py", line 364, in load_marked_modules
    loaded, processed = load_module_graph(
                        ^^^^^^^^^^^^^^^^^^
  File "/home/odoo/odoo/odoo/modules/loading.py", line 227, in load_module_graph
    load_data(env, idref, mode, kind='data', package=package)
  File "/home/odoo/odoo/odoo/modules/loading.py", line 71, in load_data
    tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)
  File "/home/odoo/odoo/odoo/tools/convert.py", line 627, in convert_file
    convert_xml_import(env, module, fp, idref, mode, noupdate)
  File "/home/odoo/odoo/odoo/tools/convert.py", line 693, in convert_xml_import
    obj.parse(doc.getroot())
  File "/home/odoo/odoo/odoo/tools/convert.py", line 613, in parse
    self._tag_root(de)
  File "/home/odoo/odoo/odoo/tools/convert.py", line 567, 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 /home/odoo/odoo/addons/l10n_do_accounting/wizard/account_move_reversal_views.xml:4
Error while parsing or validating view:

Element '' cannot be located in parent view

View error context:
{'file': '/home/odoo/odoo/addons/l10n_do_accounting/wizard/account_move_reversal_views.xml',
 'line': 2,
 'name': 'view.account.move.reversal.inherited',
 'view': ir.ui.view(1040,),
 'view.model': 'account.move.reversal',
 'view.parent': ir.ui.view(648,),
 'xmlid': 'view_account_move_reversal_inherited'}


The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
    RPCError@http://192.168.29.132:8069/web/assets/debug/web.assets_web.js:27797:14
    makeErrorFromResponse@http://192.168.29.132:8069/web/assets/debug/web.assets_web.js:27823:31
    @http://192.168.29.132:8069/web/assets/debug/web.assets_web.js:27871:48

Steps to reproduce the error:

- Download Odoo from source and install postgresql

- Install necessary odoo dependencies (according to the docs)

- Run Odoo

- Validate that it works correctly and does not throw errors

- Install sales module successfully

- Stop Odoo

- Put the Accounting modules (by Odoo SA) and l10n_do_accounting module into Addons directory

- Run Odoo again

- install the accounting module successfully from Apps

- Install the modules that l10n_do_accounting needs to work (l10n_do by Odoo, and l10n_latam_invoice_document by Odoo) successfully from Apps

- Try to install the l10n_do_accounting module from Apps 

^^^^^^^^^^^^^^^^^ This is when I see the error

Any thoughts about this error?

Avatar
Descartar
Mejor respuesta

The system is looking for a parent view(basically a view where is going to be something), that's missing.

Which version is you installing because Odoo is by default downloading the 17.0 version and the version of the indexa's for 16.0 odoo.

Avatar
Descartar
Autor Mejor respuesta

@DiegoHidalgo that was the solution. There was a mismatch between Odoo's version and DO localization version

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
feb 23
1861
8
feb 21
25509
1
may 23
1735
3
abr 23
13225
2
ene 23
4856