コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
922 ビュー

Unable to activate Subscriptons module in Odoo 18 Enterprise Edition

Traceback (most recent call last):

  File "/opt/odoo18/odoo/odoo/http.py", line 1955, in _transactioning

    return service_model.retrying(func, env=self.env)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/odoo/service/model.py", line 90, in retrying

    result = func()

             ^^^^^^

  File "/opt/odoo18/odoo/odoo/http.py", line 1922, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/odoo/http.py", line 2172, in dispatch

    result = self.request.registry['ir.http']._dispatch(endpoint)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/odoo/addons/base/models/ir_http.py", line 328, in _dispatch

    result = endpoint(**request.params)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/odoo/http.py", line 731, in route_wrapper

    result = endpoint(self, *args, **params_ok)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/addons/web/controllers/dataset.py", line 40, in call_button

    action = call_kw(request.env[model], method, args, kwargs)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/odoo/orm/decorators.py", line 451, in call_kw

    result = getattr(recs, name)(*args, **kwargs)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/venv/lib/python3.12/site-packages/decorator.py", line 232, in fun

    return caller(func, *(extras + args), **kw)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/odoo/addons/base/models/ir_module.py", line 75, in check_and_log

    return method(self, *args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/odoo/addons/base/models/ir_module.py", line 462, in button_immediate_install

    return self._button_immediate_function(self.env.registry[self._name].button_install)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/odoo/addons/base/models/ir_module.py", line 586, in _button_immediate_function

    registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/venv/lib/python3.12/site-packages/decorator.py", line 232, in fun

    return caller(func, *(extras + args), **kw)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/odoo/tools/func.py", line 98, in locked

    return func(inst, *args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/odoo/orm/registry.py", line 135, in new

    load_modules(registry, force_demo, status, update_module)

  File "/opt/odoo18/odoo/odoo/modules/loading.py", line 481, in load_modules

    processed_modules += load_marked_modules(env, graph,

                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/odoo/modules/loading.py", line 365, in load_marked_modules

    loaded, processed = load_module_graph(

                        ^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/odoo/modules/loading.py", line 186, in load_module_graph

    load_openerp_module(package.name)

  File "/opt/odoo18/odoo/odoo/modules/module.py", line 369, in load_openerp_module

    __import__(qualname)

  File "/usr/lib/python3/dist-packages/odoo/addons/sale_subscription/__init__.py", line 4, in <module>

    from . import controllers

  File "/usr/lib/python3/dist-packages/odoo/addons/sale_subscription/controllers/__init__.py", line 3, in <module>

    from . import portal

  File "/usr/lib/python3/dist-packages/odoo/addons/sale_subscription/controllers/portal.py", line 283, in <module>

    class PaymentPortal(payment_portal.PaymentPortal):

  File "/usr/lib/python3/dist-packages/odoo/addons/sale_subscription/controllers/portal.py", line 379, in PaymentPortal

    @http.route('/my/subscriptions/<int:order_id>/transaction', type='json', auth='public')

     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/odoo18/odoo/odoo/http.py", line 716, in decorator

    assert routing.get('type', 'http') in _dispatchers.keys()

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

AssertionError

The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

    RPC_ERROR

        at makeErrorFromResponse //##.#.#.#.#.#/web/assets/9d1915d/web.assets_web.min.js:2874:163

        at XMLHttpRequest.<anonymous> //##.#.#.#/web/assets/9d1915d/web.assets_web.min.js:2879:13

 

アバター
破棄
最善の回答

Hi,


This error usually happens because the installed Subscriptions module version doesn’t fully match your Odoo 18 core.

To fix it, just make sure you use the latest Odoo 18 version of the Subscriptions addon by updating your addons path to point to the correct Odoo 18 addon folders (like /opt/odoo18/odoo/addons and /opt/odoo18/enterprise).

Then restart your Odoo server and update the apps list before installing the module again.

This will ensure all modules are compatible and prevent the RPC error.


 Hope it helps.   

アバター
破棄
関連投稿 返信 ビュー 活動
0
7月 25
217
0
7月 25
267
2
5月 25
1140
0
5月 25
660
0
3月 25
799