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

[17.0] Fastapi Auth JWT: HTML module descriptions are deprecated since Odoo 17 #466

Open
JochenVanSeveren opened this issue Oct 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JochenVanSeveren
Copy link

JochenVanSeveren commented Oct 31, 2024

Module

fastapi_auth_jwt

Describe the bug

HTML module descriptions are deprecated since Odoo 17

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Install the module on Odoo.sh

Expected behavior
Build colors orange instead of that nice green.

This warning shows up on Odoo.sh:
Additional context

/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py:178: DeprecationWarning: XML declarations in HTML module descriptions are deprecated since Odoo 17, fastapi_auth_jwt can just have a UTF8 description with not need for a declaration.
  File "/home/odoo/src/odoo/odoo-bin", line 8, in <module>
    odoo.cli.main()
  File "/home/odoo/src/odoo/odoo/cli/command.py", line 66, in main
    o.run(args)
  File "/home/odoo/src/odoo/odoo/cli/server.py", line 184, in run
    main(args)
  File "/home/odoo/src/odoo/odoo/cli/server.py", line 177, in main
    rc = odoo.service.server.start(preload=preload, stop=stop)
  File "/home/odoo/src/odoo/odoo/service/server.py", line 1413, in start
    rc = server.run(preload, stop)
  File "/home/odoo/src/odoo/odoo/service/server.py", line 590, in run
    rc = preload_registries(preload)
  File "/home/odoo/src/odoo/odoo/service/server.py", line 1313, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "<decorator-gen-16>", line 2, in new
  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 114, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/home/odoo/src/odoo/odoo/modules/loading.py", line 476, 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 222, in load_module_graph
    module._check()
  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 847, in _check
    if not module.description_html:
  File "/home/odoo/src/odoo/odoo/fields.py", line 1207, in __get__
    self.compute_value(recs)
  File "/home/odoo/src/odoo/odoo/fields.py", line 1389, in compute_value
    records._compute_field_value(self)
  File "/home/odoo/src/odoo/odoo/models.py", line 4894, in _compute_field_value
    fields.determine(field.compute, self)
  File "/home/odoo/src/odoo/odoo/fields.py", line 102, in determine
    return needle(*args)
  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 178, in _get_desc
    warnings.warn(

Can I make a PR removing /description/index.html?

@JochenVanSeveren JochenVanSeveren added the bug Something isn't working label Oct 31, 2024
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