diff --git a/membership_section/models/membership_section.py b/membership_section/models/membership_section.py index 9032b7c..d636d3b 100644 --- a/membership_section/models/membership_section.py +++ b/membership_section/models/membership_section.py @@ -10,9 +10,9 @@ class MembershipSection(models.Model): "membership.section.membership", "section_id" ) partner_ids = fields.Many2many( - "res.partner", string="Contacts", compute="_compute_partner_ids" + "res.partner", string="Contacts", compute="_compute_partner_ids", compute_sudo=True, ) - partner_ids_count = fields.Integer("# of Members", compute="_compute_partner_ids") + partner_ids_count = fields.Integer("# of Members", compute="_compute_partner_ids", compute_sudo=True) @api.depends("section_membership_ids", "section_membership_ids.partner_id") def _compute_partner_ids(self):