Skip to content

Commit

Permalink
[RFC] l10n_br_cte_spec: rename model spec_models to spec_mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelsavegnago committed Oct 28, 2024
1 parent e81bb43 commit a3f1781
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion l10n_br_cte_spec/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from . import spec_models
from . import spec_mixin
from . import v4_0
File renamed without changes.
10 changes: 5 additions & 5 deletions l10n_br_cte_spec/tests/test_cte_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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$")

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit a3f1781

Please sign in to comment.