Choose document's directory

document_choose_directory
REPOSITORY
REPOSITORYOCA/knowledge
GIT
GIThttps://github.com/OCA/knowledge.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/knowledge/tree/10.0/document_choose_directory
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYKnowledge
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Therp BV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Therp BV
COMMITTERS
COMMITTERSPedro M. Baeza, Stéphane Bidoul (ACSONE)
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:58
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - document
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
assets_backend asset_document_choose_directory ir.ui.view qweb Inherits web.assets_backend
view_document_directory_form document.directory xpath Inherits document.view_document_directory_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • get_candidates_for_resource(self, cr, uid, res_model, res_id, context=None)
    return directories that can be chosen for a certain record of a certain model - js api

New fields (0)

No new fields.

Public methods (1)
  • read(self, cr, uid, ids, fields_to_read=None, context=None, load='_classic_read')
    inject the extra field we need in the web client. This saves us a couple of extra client side calls
REPOSITORY
REPOSITORYOCA/knowledge
GIT
GIThttps://github.com/OCA/knowledge.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/knowledge/tree/9.0/document_choose_directory
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYKnowledge
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Therp BV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Therp BV
COMMITTERS
COMMITTERSPedro M. Baeza, Stéphane Bidoul (ACSONE)
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - document
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
assets_backend asset_document_choose_directory ir.ui.view qweb Inherits web.assets_backend
view_document_directory_form document.directory xpath Inherits document.view_document_directory_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • get_candidates_for_resource(self, cr, uid, res_model, res_id, context=None)
    return directories that can be chosen for a certain record of a certain model - js api

New fields (0)

No new fields.

Public methods (1)
  • read(self, cr, uid, ids, fields_to_read=None, context=None, load='_classic_read')
    inject the extra field we need in the web client. This saves us a couple of extra client side calls
REPOSITORY
REPOSITORYOCA/knowledge
GIT
GIThttps://github.com/OCA/knowledge.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/knowledge/tree/8.0/document_choose_directory
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYKnowledge
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Therp BV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Therp BV
COMMITTERS
COMMITTERSStéphane Bidoul, Yannick Vaucher, Guewen Baconnier, Holger Brunn, Stéphane Bidoul (ACSONE), OCA Transbot, Matjaz Mozetic, Matjaž Mozetič
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:24
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - document
    - knowledge
    - base
    - base_setup
    - web_kanban
    - web
    - mail
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
assets_backend asset_document_choose_directory ir.ui.view qweb Inherits web.assets_backend
view_document_directory_form document.directory xpath Inherits document.view_document_directory_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • get_candidates_for_resource(self, cr, uid, res_model, res_id, context=None)
    return directories that can be chosen for a certain record of a certain model - js api

New fields (0)

No new fields.

Public methods (1)
  • read(self, cr, uid, ids, fields_to_read=None, context=None, load='_classic_read')
    inject the extra field we need in the web client. This saves us a couple of extra client side calls
REPOSITORY
REPOSITORYOCA/knowledge
GIT
GIThttps://github.com/OCA/knowledge.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/knowledge/tree/7.0/document_choose_directory
VERSION
VERSION 1.0
CATEGORY
CATEGORYKnowledge
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Therp BV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Therp BV
COMMITTERS
COMMITTERSAlexandre Fayolle, Holger Brunn, Stéphane Bidoul (ACSONE), OCA Transbot
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:14
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - document
    - knowledge
    - base
    - base_setup
    - web_kanban
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Introduction
============

This addons enables users to choose a directory while uploading a file. In
combination with access permissions on directories, this can be used to
restrict access on certain records' attachments or simply for a better
overview.

Configuration
=============

Create a static directory and choose the resource model you want to use this
directory on. Assign groups to whom this directory should be accessible. When
uploading a files, users can select one of the directories they have access to,
or no directory which is the default setting.

Keep in mind that if a directory has a owner, it's only visible for this user,
that's probably not what you want.
    

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_document_directory_form document.directory xpath Inherits document.view_document_directory_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • get_candidates_for_resource(self, cr, uid, res_model, res_id, context=None)
    return directories that can be chosen for a certain record of a certain model - js api

New fields (0)

No new fields.

Public methods (1)
  • read(self, cr, uid, ids, fields_to_read=None, context=None, load='_classic_read')
    inject the extra field we need in the web client. This saves us a couple of extra client side calls