from odoo.addons.connector.components.core import Component
from odoo.addons.connector.components.collection import use


class BaseComponent(Component):
    _inherit = 'base'

    def test_inherit_base(self):
        return 'test_inherit_base'

class Mapper(Component):
    _name = 'mapper'

    def test_inherit_component(self):
        return 'test_inherit_component'


class TestMapper(Component):
    _name = 'test.mapper'
    _inherit = 'mapper'

    def name(self):
        return 'test.mapper'

from odoo.addons.connector.components.core import Component


class BaseComponent(Component):
    _inherit = 'base'

    def test_inherit_base(self):
        return 'test_inherit_base'

class Mapper(Component):
    _name = 'mapper'

    def test_inherit_component(self):
        return 'test_inherit_component'


class TestMapper(Component):
    _name = 'test.mapper'
    _inherit = 'mapper'

    def name(self):
        return 'test.mapper'

Improve on the collections, work, ...
Improve on the collections, work, ...

  from odoo.addons.connector.components.core import Component
- from odoo.addons.connector.components.collection import use
  
  
  class BaseComponent(Component):
      _inherit = 'base'
  
      def test_inherit_base(self):
          return 'test_inherit_base'
  
  class Mapper(Component):
      _name = 'mapper'
  
      def test_inherit_component(self):
          return 'test_inherit_component'
  
  
  class TestMapper(Component):
      _name = 'test.mapper'
      _inherit = 'mapper'
  
      def name(self):
          return 'test.mapper'
  
Improve on the collections, work, ...
## Code Before:
from odoo.addons.connector.components.core import Component
from odoo.addons.connector.components.collection import use


class BaseComponent(Component):
    _inherit = 'base'

    def test_inherit_base(self):
        return 'test_inherit_base'

class Mapper(Component):
    _name = 'mapper'

    def test_inherit_component(self):
        return 'test_inherit_component'


class TestMapper(Component):
    _name = 'test.mapper'
    _inherit = 'mapper'

    def name(self):
        return 'test.mapper'

## Instruction:
Improve on the collections, work, ...
## Code After:
from odoo.addons.connector.components.core import Component


class BaseComponent(Component):
    _inherit = 'base'

    def test_inherit_base(self):
        return 'test_inherit_base'

class Mapper(Component):
    _name = 'mapper'

    def test_inherit_component(self):
        return 'test_inherit_component'


class TestMapper(Component):
    _name = 'test.mapper'
    _inherit = 'mapper'

    def name(self):
        return 'test.mapper'
