Python code are interpreted from top to bottom. The 'subscriptions' and
'usage_id' in 'umbrella_member' class are refer to attributes of other
classes. When  'umbrella_member' class is instantiated, the other
classes which refer to, however, are not yet instantiated, and thus
cause the error.

Simply put, you should put umbrella_member class behind the class of
umbrella_usage and umbrella_service.

However, there is still another problem, the field defined in 
'umbrella_service' and
'umbrella_usage' are referring to each other.  Putting whichever class in front 
of the other referring class will cause the above problem described.

The workaround is 'not referring to each other', if you really need
that, put one of the two classes' relation field in a inherited class.

Tony Gu




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=49542#49542

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to