<commit_before># Copyright (C) 2010-2012  <NAME> (Akretion)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import models


class FormatAddressMixin(models.AbstractModel):
    _inherit = "format.address.mixin"

    def zip_search(self):
        self.ensure_one()
        return self.env["l10n_br.zip"].zip_search(self)<commit_msg>[IMP] teste herança<commit_after># Copyright (C) 2010-2012  <NAME> (Akretion)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import models


class FormatAddressMixin(models.AbstractModel):
    _inherit = "format.address.mixin"

    def zip_search(self):
        self.ensure_one()
        return self.env["l10n_br.zip"].zip_search(self)

    def _fields_view_get_address(self, arch):
        address_view_id = self.env.company.country_id.address_view_id.sudo()
        for rec in address_view_id.inherit_children_ids:
            if rec.model != self._name:
                rec.model = None
        return super()._fields_view_get_address(arch)
{'fraction_non_alphanumeric': 0.1203883495145631, 'fraction_numerical': 0.02524271844660194, 'mean_word_length': 3.3872340425531915, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4543414', 'n_tokens_mistral': 374, 'n_tokens_neox': 346, 'n_words': 63}