Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Invoicing

Entity: mail.message

Compute Method: _compute_account_audit_log_restricted

Inputs Method Outputs
self.account_audit_log_restricted = False
if potentially_restricted := self.filtered(lambda r: r.model in DOMAINS):
            restricted = self.search(Domain('id', 'in', potentially_restricted.ids) + self._search_account_audit_log_restricted('in', [True]))
            restricted.account_audit_log_restricted = True

Back to entity