oca-technical/odoo-bringout-oca-connector-test_connector/test_connector/models/components.py
2025-08-29 15:43:03 +02:00

22 lines
612 B
Python

# Copyright 2016 Camptocamp SA
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)
from odoo.addons.component.core import Component
class ConnectorTestBinder(Component):
_name = "connector.test.binder"
_inherit = ["base.binder"]
_apply_on = ["connector.test.binding"]
class NoInheritsBinder(Component):
_name = "connector.test.no.inherits.binder"
_inherit = ["base.binder"]
_apply_on = ["no.inherits.binding"]
def unwrap_binding(self, binding):
raise ValueError("Not an inherits")
def unwrap_model(self):
raise ValueError("Not an inherits")