Analytic distributions restriction per HR department

analytic_hr_department_restriction
REPOSITORY
REPOSITORYOCA/account-analytic
GIT
GIThttps://github.com/OCA/account-analytic.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-analytic/tree/18.0/analytic_hr_department_restriction
VERSION
VERSION 1.1.1
CATEGORY
CATEGORYAccount
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSVíctor Martínez, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/account-analytic
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - hr
    - phone_validation
    - resource_mail
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows you to limit plans and analytical accounts by
employee departments.

Users will only be able to view plans and analytical accounts linked to
their employee's department or those with no department defined.

Users with the "Invoicing / Invoicing" permission will be able to view all
plans and analytical accounts without restrictions.

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
account_analytic_plan_form_view account.analytic.plan field Inherits analytic.account_analytic_plan_form_view
account_analytic_plan_tree_view account.analytic.plan field Inherits analytic.account_analytic_plan_tree_view
view_account_analytic_account_form account.analytic.account field Inherits analytic.view_account_analytic_account_form
view_account_analytic_account_list account.analytic.account field Inherits analytic.view_account_analytic_account_list
view_account_analytic_account_search account.analytic.account field Inherits analytic.view_account_analytic_account_search
Models touched (3)

New fields (1)
  • department_ids Many2many → hr.department
    comodel_name='hr.department' domain="['|',('company_id', '=?', company_id),('company_id', '=', False)]" string='Departments'
Public methods (0)

No public methods.

New fields (1)
  • department_ids Many2many → hr.department
    comodel_name='hr.department' string='Departments'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-analytic
GIT
GIThttps://github.com/OCA/account-analytic.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-analytic/tree/16.0/analytic_hr_department_restriction
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYAccount
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSVíctor Martínez, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/account-analytic
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:49
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - hr
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
account_analytic_plan_form_view account.analytic.plan xpath Inherits analytic.account_analytic_plan_form_view
account_analytic_plan_tree_view account.analytic.plan field Inherits analytic.account_analytic_plan_tree_view
view_account_analytic_account_form account.analytic.account field Inherits analytic.view_account_analytic_account_form
view_account_analytic_account_list account.analytic.account field Inherits analytic.view_account_analytic_account_list
view_account_analytic_account_search account.analytic.account field Inherits analytic.view_account_analytic_account_search
Models touched (3)

New fields (1)
  • department_ids Many2many → hr.department
    comodel_name='hr.department' domain="['|',('company_id', '=?', company_id),('company_id', '=', False)]" string='Departments'
Public methods (0)

No public methods.

New fields (1)
  • department_ids Many2many → hr.department
    comodel_name='hr.department' domain="['|',('company_id', '=?', company_id),('company_id', '=', False)]" string='Departments'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.