diff --git a/partner_profiles_portal/__manifest__.py b/partner_profiles_portal/__manifest__.py index a6061ac..6033d66 100644 --- a/partner_profiles_portal/__manifest__.py +++ b/partner_profiles_portal/__manifest__.py @@ -3,7 +3,7 @@ { "name": "partner_profiles_portal", - "version": "12.0.2.4.2", + "version": "12.0.2.5.0", "author": "Elabore", "website": "https://elabore.coop", "maintainer": "Stéphan Sainléger", diff --git a/partner_profiles_portal/models/res_partner.py b/partner_profiles_portal/models/res_partner.py index d269b24..e63b5c9 100644 --- a/partner_profiles_portal/models/res_partner.py +++ b/partner_profiles_portal/models/res_partner.py @@ -41,15 +41,15 @@ class res_partner(models.Model): @api.depends( "other_contact_ids", "other_contact_ids.edit_structure_profiles", - "child_ids", - "child_ids.edit_structure_profiles", + "structure_position_ids", + "structure_position_ids.edit_structure_profiles", ) def _compute_can_read_edit(self): for partner in self: - partner.can_edit_structure_profiles_ids = partner.child_ids.filtered( + partner.can_edit_structure_profiles_ids = partner.structure_position_ids.filtered( "edit_structure_profiles" ).mapped("contact_id") - partner.child_main_contact_ids = partner.child_ids.mapped("contact_id") + partner.child_main_contact_ids = partner.structure_position_ids.mapped("contact_id") @api.depends("user_ids") def _compute_odoo_user_id(self):