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

Module: Account Audit Trail

Entity: mail.message

Compute Method: _compute_show_audit_log

View 17.0
Inputs Method Outputs
  • message_type
  • account_audit_log_move_id
  • account_audit_log_account_id
  • account_audit_log_tax_id
  • account_audit_log_partner_id
  • account_audit_log_company_id
- for message in self:
-             message.show_audit_log = message.message_type == 'notification' and (
-                 message.account_audit_log_move_id
-                 or message.account_audit_log_account_id
-                 or message.account_audit_log_tax_id
-                 or message.account_audit_log_partner_id
-                 or message.account_audit_log_company_id
-             )
  • show_audit_log

Back to entity