Department Sequence

hr_department_sequence
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/10.0/hr_department_sequence
VERSION
VERSION 1.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
COMMITTERS
COMMITTERSPedro M. Baeza, Stéphane Bidoul (ACSONE)
WEBSITE
WEBSITEhttp://www.openerp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:58
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - bus
    - web_tour
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
hr_department_tree_view hr.department.tree.sequence hr.department xpath Inherits hr.view_department_tree
hr_department_view hr.department.form.sequence hr.department xpath Inherits hr.view_department_form
view_department_filter Departments (hr_department_sequence) hr.department xpath Inherits hr.view_department_filter
Models touched (1)

New fields (7)
  • active Boolean
    default=True string='Active'
  • child_ids One2many → hr.department
    comodel_name='hr.department' inverse_name='parent_id' string='Children Departments'
  • code Char
  • parent_id Many2one
    ondelete='restrict'
  • parent_left Integer
    index=True string='Left Parent'
  • parent_right Integer
    index=True string='Right Parent'
  • sequence Integer
    help='Gives the sequence order when displaying a list of departments.' index=True string='Sequence'
Public methods (3)
  • copy(self, default=None)
    @api.one
  • name_get(self)
    @api.one
  • name_search(self, name='', args=None, operator='ilike', limit=100)
    @api.model
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/9.0/hr_department_sequence
VERSION
VERSION 1.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
COMMITTERS
COMMITTERSPedro M. Baeza, Stéphane Bidoul (ACSONE)
WEBSITE
WEBSITEhttp://www.openerp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - bus
    - resource
    - web_tip
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
hr_department_tree_view hr.department.tree.sequence hr.department xpath Inherits hr.view_department_tree
hr_department_view hr.department.form.sequence hr.department xpath Inherits hr.view_department_form
view_department_filter Departments (hr_department_sequence) hr.department xpath Inherits hr.view_department_filter
Models touched (1)

New fields (7)
  • active Boolean
    default=True string='Active'
  • child_ids One2many → hr.department
    comodel_name='hr.department' inverse_name='parent_id' string='Children Departments'
  • code Char
  • parent_id Many2one
    ondelete='restrict'
  • parent_left Integer
    index=True string='Left Parent'
  • parent_right Integer
    index=True string='Right Parent'
  • sequence Integer
    help='Gives the sequence order when displaying a list of departments.' index=True string='Sequence'
Public methods (3)
  • copy(self, default=None)
    @api.one
  • name_get(self)
    @api.one
  • name_search(self, name='', args=None, operator='ilike', limit=100)
    @api.model
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/8.0/hr_department_sequence
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
COMMITTERS
COMMITTERSStéphane Bidoul, Pedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, Adrien Peiffer (ACSONE), oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttp://www.openerp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - resource
    - board
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
hr_department_tree_view hr.department.tree.sequence hr.department xpath Inherits hr.view_department_tree
hr_department_view hr.department.form.sequence hr.department xpath Inherits hr.view_department_form
view_department_filter Departments (hr_department_sequence) hr.department xpath Inherits hr.view_department_filter
Models touched (1)

New fields (7)
  • active Boolean
    default=True string='Active'
  • child_ids One2many → hr.department
    comodel_name='hr.department' inverse_name='parent_id' string='Children Departments'
  • code Char
  • parent_id Many2one
    ondelete='restrict'
  • parent_left Integer
    index=True string='Left Parent'
  • parent_right Integer
    index=True string='Right Parent'
  • sequence Integer
    help='Gives the sequence order when displaying a list of departments.' index=True string='Sequence'
Public methods (3)
  • copy(self, default=None)
    @api.one
  • name_get(self)
    @api.one
  • name_search(self, name='', args=None, operator='ilike', limit=100)
    @api.model
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/7.0/hr_department_sequence
VERSION
VERSION 1.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Michael Telahun Makonnen <mmakonnen@gmail.com>
COMMITTERS
COMMITTERSAlexandre Fayolle, Michael Telahun Makonnen, Sandy Carter, Maxime Chambreuil, Daniel Reis, Stéphane Bidoul (ACSONE), Launchpad Translations on behalf of hr-core-editors, EL HADJI DEM, OCA Transbot, Rudolf Schnapka, dufresnedavid
WEBSITE
WEBSITEhttp://www.openerp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:14
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - resource
    - process
    - board
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Order by Parent-Child Relationship and by Sequence Number
=========================================================
    

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
hr_department_tree_view hr.department.tree.sequence hr.department xpath Inherits hr.view_department_tree
hr_department_view hr.department.form.sequence hr.department xpath Inherits hr.view_department_form
view_department_filter hr.department.search hr.department xpath Inherits hr.view_department_filter
Models touched (1)

New fields (0)

No new fields.

Public methods (2)
  • name_get(self, cr, uid, ids, context=None)
    Show department code with name
  • name_search(self, cr, uid, name='', args=None, operator='ilike', context=None, limit=100)