mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-20 02:32:07 +02:00
22 lines
612 B
Python
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")
|