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

16.0 [fs_storage] cannot add a storage backend through the UI #452

Open
vdl-dsi-architecture opened this issue Mar 4, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@vdl-dsi-architecture
Copy link

Module

fs_storage

Describe the bug

When adding a storage backend with any protocol, you get an error.

To Reproduce

Affected versions: 16.0

Steps to reproduce the behavior:

  1. go to the storage backend list
  2. add a new one
  3. select any protocol (in our case, s3, but we couldn't get the same error with others)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 2071, in __call__
    response = request._serve_db()
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1658, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 133, in retrying
    result = func()
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1686, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1890, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
    result = endpoint(**request.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 734, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 42, in call_kw
    return 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 466, in call_kw
    result = _call_kw_model_create(method, model, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 444, in _call_kw_model_create
    result = method(recs, *args, **kwargs)
  File "<decorator-gen-66>", line 2, in create
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 414, in _model_create_multi
    return create(self, [arg])
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_fields.py", line 670, in create
    recs = super().create(vals_list)
  File "<decorator-gen-15>", line 2, in create
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 415, in _model_create_multi
    return create(self, arg)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 4033, in create
    next(iter(fields)).determine_inverse(batch_recs)
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1401, in determine_inverse
    determine(self.inverse, records)
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 97, in determine
    if needle.__name__.find('__'):
AttributeError: 'functools.partial' object has no attribute '__name__'

Expected behavior
It works

Additional context
I can see this bug open on odoo itself odoo/odoo#117559

Does that mean that fs_storage hasn't worked since 2023? I'm really confused. The setup documentation is very sparse (as can be seen by the "How does this works" issues in the repo).

@vdl-dsi-architecture vdl-dsi-architecture added the bug Something isn't working label Mar 4, 2025
@vdl-dsi-architecture
Copy link
Author

breakpoint right before the stacktrace :

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant