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

Module: TMS Document

Entity: tms.driver

Compute Method: _compute_document_ids

Inputs Method Outputs
  • id
Doc = self.env["tms.document"]
for rec in self:
            rec.document_ids = Doc.search(
                [("res_model", "=", "tms.driver"), ("res_id", "=", rec.id)]
            )

Back to entity