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

Module: Project Task Sign Oca

Entity: sign.oca.request

Compute Method: _compute_project_id

Inputs Method Outputs
  • record_ref
  • record_ref.id
for item in self.filtered(
            lambda x: x.record_ref and x.record_ref._name == "project.task"
        ):
            task = self.env["project.task"].browse(item.record_ref.id)
            item.project_id = task.project_id

Back to entity