Prevent Wizard State to start with '_'
review585006
This commit is contained in:
1 parent
032e62a8ae
commit
caf073daaf
2 files changed
+3
No files matched your search
@@ -1,3 +1,4 @@
|
||||
* Prevent Wizard State name to start with '_'
|
||||
* Add completion attribute for Many2One, Many2Many and One2Many
|
||||
* Add ViewSearch
|
||||
* Add domains on Action Window
|
||||
|
||||
@@ -166,6 +166,8 @@ class Wizard(WarningErrorMixin, URLMixin):
|
||||
# Set states
|
||||
cls.states = {}
|
||||
for attr in dir(cls):
|
||||
if attr.startswith('_'):
|
||||
continue
|
||||
if isinstance(getattr(cls, attr), State):
|
||||
cls.states[attr] = getattr(cls, attr)
|
||||
|
||||
|
||||
Reference in new issue
Block a user