Odoo 8: Many2many domain filter
I have several organization types with a many2many relation describing which types that may be parent to other types (e.g. department can be parent to sub-department and working group). It's NOT a strict hierarchy (working group can be parent to other working groups), hence the many2many relation. I have two fields on my organization_type object: allowed_parent_type_ids and the inverse allowed_children_type_ids . Now I want to restrict the organization type field on my organization object depending on it's parent, so a child of a "department" can only select the organization types allowed to