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][FIX] Removendo warning do campo res.partner.vat #3540

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

renatonlima
Copy link
Member

Quando é instalado o módulo l10n_br_base, existe uma mensagem de warning informando que o campo vat do objeto res.partner precisa ter o atributo recursive=True

2024-12-10 17:51:50,757 74 INFO db odoo.modules.loading: Module bus loaded in 0.25s, 103 queries (+103 other)
2024-12-10 17:51:50,757 74 INFO db odoo.modules.loading: Loading module web_kanban_gauge (9/28)
2024-12-10 17:51:50,847 74 INFO db odoo.modules.loading: Module web_kanban_gauge loaded in 0.09s, 12 queries (+12 other)
2024-12-10 17:51:50,848 74 INFO db odoo.modules.loading: Loading module web_tour (10/28)
2024-12-10 17:51:50,884 74 INFO db odoo.modules.registry: module web_tour: creating or updating database tables
2024-12-10 17:51:50,935 74 INFO db odoo.modules.loading: loading web_tour/security/ir.model.access.csv
2024-12-10 17:51:50,958 74 INFO db odoo.modules.loading: loading web_tour/security/ir.rule.csv
2024-12-10 17:51:50,980 74 INFO db odoo.modules.loading: loading web_tour/views/tour_views.xml
2024-12-10 17:51:51,129 74 INFO db odoo.modules.loading: Module web_tour loaded in 0.28s, 101 queries (+101 other)
2024-12-10 17:51:51,129 74 INFO db odoo.modules.loading: Loading module iap (11/28)
2024-12-10 17:51:51,174 74 INFO db odoo.modules.registry: module iap: creating or updating database tables
2024-12-10 17:51:51,253 74 INFO db odoo.modules.loading: loading iap/security/ir.model.access.csv
2024-12-10 17:51:51,273 74 INFO db odoo.modules.loading: loading iap/security/ir_rule.xml
2024-12-10 17:51:51,291 74 INFO db odoo.modules.loading: loading iap/views/iap_views.xml
2024-12-10 17:51:51,338 74 INFO db odoo.modules.loading: loading iap/views/res_config_settings.xml
2024-12-10 17:51:51,426 74 INFO db odoo.modules.loading: Module iap loaded in 0.30s, 147 queries (+147 other)
2024-12-10 17:51:51,427 74 INFO db odoo.modules.loading: Loading module l10n_br_base (12/28)
2024-12-10 17:51:52,059 74 INFO db odoo.modules.registry: module l10n_br_base: creating or updating database tables
2024-12-10 17:51:52,145 74 INFO db odoo.models: Prepare computation of res.partner.cnpj_cpf_stripped
2024-12-10 17:51:52,166 74 INFO db odoo.models: Prepare computation of res.company.cnpj_cpf_stripped
2024-12-10 17:51:52,316 74 WARNING db py.warnings: /odoo/src/odoo/fields.py:798: UserWarning: Field res.partner.vat should be declared with recursive=True
  File "/env/bin/odoo", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "/odoo/src/setup/odoo", line 8, in <module>
    odoo.cli.main()
  File "/odoo/src/odoo/cli/command.py", line 66, in main
    o.run(args)
  File "/odoo/src/odoo/cli/server.py", line 185, in run
    main(args)
  File "/odoo/src/odoo/cli/server.py", line 178, in main
    rc = odoo.service.server.start(preload=preload, stop=stop)
  File "/odoo/src/odoo/service/server.py", line 1410, in start
    rc = server.run(preload, stop)
  File "/odoo/src/odoo/service/server.py", line 590, in run
    rc = preload_registries(preload)
  File "/odoo/src/odoo/service/server.py", line 1310, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "/env/lib/python3.10/site-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
  File "/odoo/src/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
  File "/odoo/src/odoo/modules/registry.py", line 91, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/odoo/src/odoo/modules/loading.py", line 488, in load_modules
    processed_modules += load_marked_modules(cr, graph,
  File "/odoo/src/odoo/modules/loading.py", line 372, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/odoo/src/odoo/modules/loading.py", line 208, in load_module_graph
    registry.init_models(cr, model_names, {'module': package.name}, new_install)
  File "/odoo/src/odoo/modules/registry.py", line 542, in init_models
    func()
  File "/odoo/src/odoo/addons/base/models/ir_model.py", line 47, in mark_modified
    records.modified(fnames)
  File "/odoo/src/odoo/models.py", line 6113, in modified
    todo = [self._modified([self._fields[fname] for fname in fnames], create)]
  File "/odoo/src/odoo/models.py", line 6164, in _modified
    tree = self.pool.get_trigger_tree(fields, select=select)
  File "/odoo/src/odoo/modules/registry.py", line 346, in get_trigger_tree
    trees = [
  File "/odoo/src/odoo/modules/registry.py", line 349, in <listcomp>
    if field in self._field_triggers
  File "/odoo/src/odoo/tools/func.py", line 28, in __get__
    value = self.fget(obj)
  File "/odoo/src/odoo/modules/registry.py", line 443, in _field_triggers
    dependencies = list(field.resolve_depends(self))
  File "/odoo/src/odoo/fields.py", line 798, in resolve_depends
    warnings.warn(f"Field {self} should be declared with recursive=True")

@OCA-git-bot
Copy link
Contributor

Hi @rvalyi,
some modules you are maintaining are being modified, check this out!

Copy link
Member

@rvalyi rvalyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Podemos fazer isso por enquanto para nao atrapalhar tanto sim.

@antoniospneto
Copy link
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-3540-by-antoniospneto-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 56d5628 into OCA:16.0 Dec 11, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 362ed5a. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.

6 participants