You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When _event method is called that is defined in base model, and if there is no components_registry provided. The one that is used in fallback, produces this error:
This was encountered, when installing/upgrading base_rest module with --test-enable.
Expected behavior
Should not throw any error. Also another problematic thing with this is that tests won't simply fail, but odoo will crash entirely, stopping any other tests from running as well.
Though that is just a simple dict subclass, which has no such attribute as ready.
But next to that class, there is ComponentRegistry which does have ready attribute. So I guess thats the one that should be used? Though not sure, how it is intended to be used there. Should it just simply be initiated on demand or we need to reuse some existing instance of that class?
The text was updated successfully, but these errors were encountered:
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.
Module
component_event
Describe the bug
When
_event
method is called that is defined inbase
model, and if there is nocomponents_registry
provided. The one that is used in fallback, produces this error:To Reproduce
Affected versions: 16.0
Steps to reproduce the behavior:
base_rest
module with--test-enable
.Expected behavior
Should not throw any error. Also another problematic thing with this is that tests won't simply fail, but odoo will crash entirely, stopping any other tests from running as well.
Additional context
The problem lies here:
connector/component_event/models/base.py
Line 69 in 7fd90ce
It tries to use this class instance as a fallback:
connector/component/core.py
Line 59 in 7fd90ce
Though that is just a simple dict subclass, which has no such attribute as
ready
.But next to that class, there is
ComponentRegistry
which does haveready
attribute. So I guess thats the one that should be used? Though not sure, how it is intended to be used there. Should it just simply be initiated on demand or we need to reuse some existing instance of that class?The text was updated successfully, but these errors were encountered: