Browse Source

[REF] emcc: components to their own directory

pull/115/head
robin.keunen 4 years ago
parent
commit
05edbd10f6
  1. 1
      easy_my_coop_connector/__init__.py
  2. 3
      easy_my_coop_connector/components/__init__.py
  3. 0
      easy_my_coop_connector/components/emc_adapters.py
  4. 0
      easy_my_coop_connector/components/emc_backend.py
  5. 0
      easy_my_coop_connector/components/emc_bindings.py
  6. 2
      easy_my_coop_connector/models/__init__.py
  7. 4
      easy_my_coop_connector/models/account_payment.py
  8. 2
      easy_my_coop_connector/models/subscription_request.py

1
easy_my_coop_connector/__init__.py

@ -1,2 +1,3 @@
from . import components
from . import models
from . import wizards

3
easy_my_coop_connector/components/__init__.py

@ -0,0 +1,3 @@
from . import emc_adapters
from . import emc_backend
from . import emc_bindings

0
easy_my_coop_connector/models/emc_adapters.py → easy_my_coop_connector/components/emc_adapters.py

0
easy_my_coop_connector/models/emc_backend.py → easy_my_coop_connector/components/emc_backend.py

0
easy_my_coop_connector/models/emc_bindings.py → easy_my_coop_connector/components/emc_bindings.py

2
easy_my_coop_connector/models/__init__.py

@ -1,5 +1,3 @@
from . import emc_backend
from . import emc_bindings
from . import account_invoice
from . import account_journal
from . import account_payment

4
easy_my_coop_connector/models/account_payment.py

@ -5,7 +5,7 @@
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
from .emc_adapters import AccountPaymentAdapter
from ..components.emc_adapters import AccountPaymentAdapter
class AccountPayment(models.Model):
@ -39,7 +39,7 @@ class AccountPayment(models.Model):
external_id, external_record = adapter.create(payment)
self.env["emc.binding.account.payment"].create(
{
"backend": backend.id,
"backend_id": backend.id,
"internal_id": payment.id,
"external_id": external_id,
}

2
easy_my_coop_connector/models/subscription_request.py

@ -7,7 +7,7 @@ from datetime import date, timedelta
from odoo import api, fields, models
from .emc_adapters import SubscriptionRequestAdapter
from ..components.emc_adapters import SubscriptionRequestAdapter
_logger = logging.getLogger(__name__)

Loading…
Cancel
Save