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

Module: Document Page Approval

Entity: document.page.history

Compute Method: _compute_am_i_owner

Inputs Method Outputs
  • create_uid
"""Check if current user is the owner"""
for rec in self:
            rec.am_i_owner = rec.create_uid == self.env.user

Back to entity