robin.keunen
5 years ago
12 changed files with 212 additions and 34 deletions
-
6easy_my_coop_connector/demo/demo.xml
-
1easy_my_coop_connector/models/__init__.py
-
20easy_my_coop_connector/models/account_invoice.py
-
44easy_my_coop_connector/models/emc_backend.py
-
11easy_my_coop_connector/models/emc_bindings.py
-
53easy_my_coop_connector/models/subscription_request.py
-
19easy_my_coop_connector/models/subscription_request_adapter.py
-
1easy_my_coop_connector/security/ir.model.access.csv
-
48easy_my_coop_connector/tests/test_subscription_request.py
-
6easy_my_coop_connector/views/actions.xml
-
28easy_my_coop_connector/views/emc_bindings.xml
-
9easy_my_coop_connector/views/menus.xml
@ -1,3 +1,4 @@ |
|||||
from . import emc_backend |
from . import emc_backend |
||||
from . import emc_bindings |
from . import emc_bindings |
||||
|
from . import account_invoice |
||||
from . import subscription_request |
from . import subscription_request |
@ -0,0 +1,20 @@ |
|||||
|
# Copyright 2020 Coop IT Easy SCRL fs |
||||
|
# Robin Keunen <robin@coopiteasy.be> |
||||
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
|
import logging |
||||
|
|
||||
|
from odoo import fields, models |
||||
|
|
||||
|
_logger = logging.getLogger(__name__) |
||||
|
|
||||
|
|
||||
|
class AccountInvoice(models.Model): |
||||
|
_inherit = "account.invoice" |
||||
|
|
||||
|
binding_id = fields.One2many( |
||||
|
comodel_name="emc.binding.account.invoice", |
||||
|
inverse_name="internal_id", |
||||
|
string="Binding ID", |
||||
|
required=False, |
||||
|
) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue