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

Module: Base

Entity: res.country

Compute Method: _compute_image_url

View 19.0
Inputs Method Outputs
  • code
- for country in self:
-             if not country.code or country.code in NO_FLAG_COUNTRIES:
-                 country.image_url = False
-             else:
-                 code = FLAG_MAPPING.get(country.code, country.code.lower())
-                 country.image_url = "/base/static/img/country_flags/%s.png" % code
  • image_url

Back to entity