Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

product_dimensions 17.0: RecursionError on installation #1722

Open
jwaes opened this issue Sep 11, 2024 · 1 comment
Open

product_dimensions 17.0: RecursionError on installation #1722

jwaes opened this issue Sep 11, 2024 · 1 comment
Labels

Comments

@jwaes
Copy link

jwaes commented Sep 11, 2024

Getting a RecursionError when trying to install this module

Module

product_dimensions

Describe the bug

Unable to install.

File "/home/odoo/src/odoo/odoo/modules/registry.py", line 114, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/home/odoo/src/odoo/odoo/modules/loading.py", line 480, in load_modules
    processed_modules += load_marked_modules(env, graph,
  File "/home/odoo/src/odoo/odoo/modules/loading.py", line 364, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/home/odoo/src/odoo/odoo/modules/loading.py", line 204, in load_module_graph
    registry.setup_models(env.cr)
  File "<decorator-gen-19>", line 2, in setup_models
  File "/home/odoo/src/odoo/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
  File "/home/odoo/src/odoo/odoo/modules/registry.py", line 323, in setup_models
    model._setup_fields()
  File "/home/odoo/src/odoo/odoo/models.py", line 3392, in _setup_fields
    field.setup(self)
  File "/home/odoo/src/odoo/odoo/fields.py", line 531, in setup  
  
  [...]
  
  File "/home/odoo/src/odoo/odoo/fields.py", line 531, in setup
    self.setup_related(model)
  File "/home/odoo/src/odoo/odoo/fields.py", line 610, in setup_related
    field.setup(model.env[model_name])
  File "/home/odoo/src/odoo/odoo/fields.py", line 531, in setup
    self.setup_related(model)
  File "/home/odoo/src/odoo/odoo/fields.py", line 610, in setup_related
    field.setup(model.env[model_name])
  File "/home/odoo/src/odoo/odoo/fields.py", line 531, in setup
    self.setup_related(model)
  File "/home/odoo/src/odoo/odoo/fields.py", line 610, in setup_related
    field.setup(model.env[model_name])
  File "/home/odoo/src/odoo/odoo/api.py", line 534, in __getitem__
    return self.registry[model_name](self, (), ())
RecursionError: maximum recursion depth exceeded

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
    RPC_ERROR

To Reproduce

Affected versions:
17.0 (ping @lethuthao2403)

Steps to reproduce the behavior:

  1. install the product_dimensions module

Additional context
dev branch on odoo.sh with latest enterprise code.

@jwaes jwaes added the bug label Sep 11, 2024
@rf-ife
Copy link

rf-ife commented Oct 1, 2024

Hello @jwaes
I couldn't reproduce the issue. I was able to install the module normally on a dev branch in Odoo.sh using the latest enterprise code. Perhaps you tried to install another module, such as 'product_dimensions,' and not the OCA one, 'product_dimension'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants