From dd821f07fa16717c254d2a84976b406e1fda8a46 Mon Sep 17 00:00:00 2001 From: Marcel Savegnago Date: Mon, 28 Oct 2024 08:16:37 -0300 Subject: [PATCH] [RFC] l10n_br_cte_spec: rename model spec_models to spec_mixin --- .../models/{spec_models.py => spec_mixin.py} | 0 l10n_br_cte_spec/tests/test_cte_import.py | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) rename l10n_br_cte_spec/models/{spec_models.py => spec_mixin.py} (100%) diff --git a/l10n_br_cte_spec/models/spec_models.py b/l10n_br_cte_spec/models/spec_mixin.py similarity index 100% rename from l10n_br_cte_spec/models/spec_models.py rename to l10n_br_cte_spec/models/spec_mixin.py diff --git a/l10n_br_cte_spec/tests/test_cte_import.py b/l10n_br_cte_spec/tests/test_cte_import.py index f6ec5c7acdf3..fc39651fc2a8 100644 --- a/l10n_br_cte_spec/tests/test_cte_import.py +++ b/l10n_br_cte_spec/tests/test_cte_import.py @@ -12,7 +12,7 @@ from odoo import api from odoo.tests import TransactionCase -from ..models import spec_models +from ..models import spec_mixin tz_datetime = re.compile(r".*[-+]0[0-9]:00$") @@ -116,10 +116,10 @@ def match_or_create_m2o_fake(self, comodel, new_value, create_m2o=False): return comodel.new(new_value).id -# spec_models.CteSpecMixin._update_cache = _update_cache -spec_models.CteSpecMixin.build_fake = build_fake -spec_models.CteSpecMixin.build_attrs_fake = build_attrs_fake -spec_models.CteSpecMixin.match_or_create_m2o_fake = match_or_create_m2o_fake +# spec_mixin.CteSpecMixin._update_cache = _update_cache +spec_mixin.CteSpecMixin.build_fake = build_fake +spec_mixin.CteSpecMixin.build_attrs_fake = build_attrs_fake +spec_mixin.CteSpecMixin.match_or_create_m2o_fake = match_or_create_m2o_fake class CTeImportTest(TransactionCase):