Computed Fields Causing Infinite Recomputations(Odoo)
backend•Jan 9, 2026

Computed Fields Causing Infinite Recomputations(Odoo)

Infinite recomputation issues in Odoo development are often caused by poorly designed computed fields. Learn how to identify and fix these issues to ensure fast, stable, and predictable performance.

devTo

devTo

Original source

Key summary

In Odoo development, infinite recomputation issues are caused by impure computed fields. To fix this, developers must follow strict discipline: pure compute methods, minimal dependencies, no ORM writes, and correct separation of UI logic and validation.

TL;DR

  • Infinite recomputation issues are caused by impure computed fields.
  • Common WRONG patterns include field dependencies on themselves and writing other fields inside compute.
  • Correct dependency declaration and pure compute methods are essential.
  • Split logic into multiple computed fields for good design.
  • Use store=True only when necessary and avoid using write() inside compute.
  • Use @api.onchange for UI logic, not compute.
  • Fix parent-child dependency loops and use constraints instead of computed fields for validation.

This content is automatically summarized using AI. For full context, always refer to the original article.

Related posts

Subscribe For New Content Updates

By becoming a member of our blog, you have access to articles and content.