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

Module: API Log

Entity: api.log

Compute Method: _compute_collection

Inputs Method Outputs
for log in self:
            collection = log.collection_ref
            if collection:
                collection_model = collection._name
                collection_id = collection.id
            else:
                collection_model = False
                collection_id = False
            log.collection_model = collection_model
            log.collection_id = collection_id

Back to entity