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

Module: Brazilian - Accounting

Entity: res.city

Compute Method: _compute_l10n_br_zip_ranges

View 19.0
Inputs Method Outputs
  • l10n_br_zip_range_ids
+ for city in self:
+             city.l10n_br_zip_ranges = " ".join(
+                 city.l10n_br_zip_range_ids.mapped(lambda zip_range: f"[{zip_range.start} {zip_range.end}]")
+             )
  • l10n_br_zip_ranges

Back to entity