[IMP] Added `hierarchy_level` and relations control to `res.company`
@enricostn @xavier.bonet We can assure that base.main_company
will be always the instance
company? This is the logic added in the post init hook.
Features
- New
hierarchy_level
selector field inres.company
- Constrains on
hierarchy_level
- Can only be one
instance
company -
instance
company can't have anyparent_id
company -
coordinator
parenthierarchy_level
must beinstance
-
community
parenthierarchy_level
must becoordinator
- Can only be one
- Added
parent_id_filtered_ids
computed field to create dynamic domain toparent_id
depending on thehierarchy_level
- Added
parent_id
field to easy_company_creation (Domain is not dynamic, we only create community type here) - Added unit test. (Feedback is appreciated
) - Post init hook assigns
instance
tobase.company
and the children companycoordinator
Roadmap
- Enable creation of
coordinator
companies in easy company creation
Edited by Daniil Digtyar Vasilieva
Merge request reports
Activity
requested review from @enricostn
assigned to @DaniilDigtyar
added Improvement label
added 1 commit
- 6ff813bf - Added test to res_company hierarchy_level creation
added 1 commit
- 5d8b7261 - Added validation raise unit testing for res.company
mentioned in merge request !81 (merged)
unassigned @DaniilDigtyar
Please register or sign in to reply