Prevent Wizard State to start with '_'

review585006
This commit is contained in:
Cédric Krier committed 2012-11-22 22:17:07 +01:00
1 parent 032e62a8ae
commit caf073daaf
2 files changed
+3

No files matched your search

+1
View File
@@ -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
+2
View File
@@ -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)