DEV Community

Cover image for Odoo : view form order importance
Jeevachaithanyan Sivanandan
Jeevachaithanyan Sivanandan

Posted on

Odoo : view form order importance

In Odoo development, you may encounter an error message like the one below:

raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: 

Enter fullscreen mode Exit fullscreen mode

Upon inspecting your code, you may find that the necessary code is correctly implemented, leading to confusion about the cause of this error. This issue often arises when referencing an external ID of a view within a view file, but the definition of this external view is written after the reference. Consequently, the system is unable to locate it, indicating a problem with order precedence. To ensure smooth execution, it's crucial to place the code defining the references above the code block where these references are used.

Top comments (0)