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.partner.bank

Compute Method: _compute_show_clearing_number

View 20.0
Inputs Method Outputs
  • country_id
+ sepa_countries = self.env.ref('base.sepa_zone').country_ids
+ clearing_label_countries = self.env['clearing.label'].search([]).country_id
+ excluded_countries = sepa_countries - clearing_label_countries
+ for account in self:
+             account.show_clearing_number = account.country_id not in excluded_countries
  • show_clearing_number

Back to entity