[IMP] partner_profiles: clarify position profiles display

separates the notebook pages of the child_ids and the position
profiles in both company and individual partner form views.
This commit is contained in:
Stéphan Sainléger
2023-06-12 16:37:00 +02:00
committed by Stéphan Sainléger
parent 9438f19140
commit 019019aa93
4 changed files with 186 additions and 14 deletions

View File

@@ -40,6 +40,8 @@ class res_partner(models.Model):
domain=[("is_position_profile", "=", True)]
)
structure_position_ids = fields.One2many('res.partner', 'parent_id', string="Structure's positions", domain=[('active', '=', True), ('is_position_profile', '=', True)])
@api.depends("partner_profile", "other_contact_ids")
def _compute_profile_booleans(self):
for partner in self: