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] brand/product_brand: Just installing the following DeprecationWarning: warning appears. #194

Open
nhomar opened this issue Apr 1, 2024 · 1 comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.

Comments

@nhomar
Copy link
Member

nhomar commented Apr 1, 2024

Install 17.0

Module

Just install the module and read the log.

Describe the bug

the following warning appears.

2024-04-01 22:51:33,665 1313001 WARNING databasename170 py.warnings: /home/nhomar/Documents/databasename17/odoo17/odoo/addons/base/models/ir_module.py:178: DeprecationWarning: XML declarations in HTML module descriptions are deprecated since Odoo 17, product_brand can just have a UTF8 description with not need for a declaration.
  File "/home/nhomar/Documents/databasename17/odoo17/./odoo-bin", line 8, in <module>
    odoo.cli.main()
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/cli/command.py", line 66, in main
    o.run(args)
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/cli/server.py", line 179, in run
    main(args)
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/cli/server.py", line 172, in main
    rc = odoo.service.server.start(preload=preload, stop=stop)
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/service/server.py", line 1402, in start
    rc = server.run(preload, stop)
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/service/server.py", line 579, in run
    rc = preload_registries(preload)
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/service/server.py", line 1302, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "<decorator-gen-16>", line 2, in new
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/modules/registry.py", line 113, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/modules/loading.py", line 480, in load_modules
    processed_modules += load_marked_modules(env, graph,
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/modules/loading.py", line 364, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/modules/loading.py", line 222, in load_module_graph
    module._check()
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/addons/base/models/ir_module.py", line 842, in _check
    if not module.description_html:
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/fields.py", line 1207, in __get__
    self.compute_value(recs)
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/fields.py", line 1389, in compute_value
    records._compute_field_value(self)
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/models.py", line 4869, in _compute_field_value
    fields.determine(field.compute, self)
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/fields.py", line 102, in determine
    return needle(*args)
  File "/home/nhomar/Documents/databasename17/odoo17/odoo/addons/base/models/ir_module.py", line 178, in _get_desc
    warnings.warn(
 
2024-04-01 22:51:33,673 1313001 INFO databasename170 odoo.modules.loading: loading product_brand/security/ir.model.access.csv 
2024-04-01 22:51:33,678 1313001 WARNING databasename170 odoo.addons.base.models.ir_model: Rule product.brand.public has no group, this is a deprecated feature. Every access-granting rule should specify a group.

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Install
  2. Read the log
  3. Warnings appear.

Expected behavior
Just fix the error

@nhomar nhomar added the bug label Apr 1, 2024
Copy link

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

1 participant