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

The functionality for autoupdating views using the generic-mixin module does not work, incl. in the test_generic_mixin module in odoo 17 #7

Open
zalei-odoo opened this issue Jun 26, 2024 · 1 comment

Comments

@zalei-odoo
Copy link

zalei-odoo commented Jun 26, 2024

Good afternoon. For version 17 of odoo, the view autoupdate functionality does not work.
After installing the generic_mixin and test_generic_mixin modules, then test autoupdating views (using test_generic_mixin module), an error occurs when write a record:

Kazam_screencast_00009.mp4
  File "../odoo/addons/web/models/models.py", line 71, in web_save
    self.write(vals)
  File "../generic/generic_mixin/models/generic_mixin_refresh_view.py", line 203, in write
    refresh_fields = self._auto_refresh_view_on_field_changes_system()
  File "<decorator-gen-124>", line 2, in _auto_refresh_view_on_field_changes_system
  File "../odoo/odoo/tools/cache.py", line 104, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "../generic/generic_mixin/models/generic_mixin_refresh_view.py", line 122, in _auto_refresh_view_on_field_changes_system
    track_fields = set((
  File "../generic/generic_mixin/models/generic_mixin_refresh_view.py", line 126, in <genexpr>
    self.CONCURRENCY_CHECK_FIELD)
AttributeError: 'test.gm.refresh.view' object has no attribute '**CONCURRENCY_CHECK_FIELD**'

Removing CONCURRENCY_CHECK_FIELD don't help, records are still not updated.
image
Look in the video below.

Kazam_screencast_00006.mp4
@zalei-odoo zalei-odoo changed the title Функционал обновления представлений из модуля generic-mixin не работает, в т.ч. в модуле test_generic_mixin The functionality for updating views from the generic-mixin module does not work, incl. in the test_generic_mixin module Jun 26, 2024
@zalei-odoo zalei-odoo changed the title The functionality for updating views from the generic-mixin module does not work, incl. in the test_generic_mixin module The functionality for autoupdating views using the generic-mixin module does not work, incl. in the test_generic_mixin module Jun 26, 2024
@zalei-odoo zalei-odoo changed the title The functionality for autoupdating views using the generic-mixin module does not work, incl. in the test_generic_mixin module The functionality for autoupdating views using the generic-mixin module does not work, incl. in the test_generic_mixin module in odoo 17 Jun 26, 2024
@zalei-odoo
Copy link
Author

zalei-odoo commented Jun 27, 2024

adding to model (as in odoo 16)
CONCURRENCY_CHECK_FIELD = '__last_update'
don't helps

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

No branches or pull requests

1 participant