mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-20 05:52:01 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
# 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue