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

Module: Odoo Project Migration Data

Entity: odoo.project.module.migration

Compute Method: _compute_project_module_id

View 18.0
Inputs Method Outputs
  • odoo_project_id
  • odoo_project_id.id
  • source_module_branch_id
  • source_module_branch_id.id
- for rec in self:
-             project_module = self.env["odoo.project.module"].search(
-                 [
-                     ("odoo_project_id", "=", rec.odoo_project_id.id),
-                     ("module_branch_id", "=", rec.source_module_branch_id.id),
-                 ],
-                 limit=1,
-             )
-             rec.project_module_id = project_module
  • project_module_id

Back to entity