Skip to content

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

Description

@zalei-odoo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions