mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 09:52:02 +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,35 @@
|
|||
# Copyright 2017 Camptocamp SA
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)
|
||||
|
||||
from odoo.addons.component.core import AbstractComponent, Component
|
||||
|
||||
|
||||
class BaseComponent(AbstractComponent):
|
||||
_inherit = "base"
|
||||
|
||||
def test_inherit_base(self):
|
||||
return "test_inherit_base"
|
||||
|
||||
|
||||
class Mapper(AbstractComponent):
|
||||
_name = "mapper"
|
||||
|
||||
def test_inherit_component(self):
|
||||
return "test_inherit_component"
|
||||
|
||||
|
||||
class ImportTestMapper(Component):
|
||||
_name = "test.mapper"
|
||||
_inherit = "mapper"
|
||||
_usage = "import.mapper"
|
||||
_collection = "test.component.collection"
|
||||
|
||||
def name(self):
|
||||
return "test.mapper"
|
||||
|
||||
|
||||
class UserTestComponent(Component):
|
||||
_name = "test.user.component"
|
||||
_apply_on = ["res.users"]
|
||||
_usage = "test1"
|
||||
_collection = "test.component.collection"
|
||||
Loading…
Add table
Add a link
Reference in a new issue