Account Lock To Date

account_lock_to_date
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/18.0/account_lock_to_date
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSMiquel Raïch, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:07
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
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to set a Period and Fiscal year Locking end dates.
This will prevent users from posting journal entries on a date after the
defined period or fiscal year end date.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_update_lock_to_date_form_view account.update.lock_to_date.form account.update.lock_to_date form New
Models touched (4)

New fields (4)
  • fiscalyear_lock_to_date Date
    compute='_compute_lock_dates' help='The date the Global Lock To Date is set to by this exception. If the lock to date is not changed it is set to False.' search='_search_fiscalyear_lock_to_date' string='Global Lock To Date'
  • lock_date_field Selection
    ondelete={'fiscalyear_lock_to_date': 'cascade', 'sale_lock_to_date': 'cascade', 'purchase_lock_to_date': 'cascade'} selection_add=[('fiscalyear_lock_to_date', 'Global Lock To Date'), ('sale_lock_to_date', 'Sales Lock To Date'), ('purchase_lock_to_date', 'Purchase Lock To Date')]
  • purchase_lock_to_date Date
    compute='_compute_lock_dates' help='The date the Purchase Lock To Date is set to by this exception. If the lock to date is not changed it is set to False.' search='_search_purchase_lock_to_date'
  • sale_lock_to_date Date
    compute='_compute_lock_dates' help='The date the Sale Lock To Date is set to by this exception. If the lock to date is not changed it is set to False.' search='_search_sale_lock_to_date' string='Sales Lock To Date'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • action_post(self)
  • button_cancel(self)
  • button_draft(self)

New fields (5)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
  • fiscalyear_lock_to_date Date
    help='No users can edit accounts posterior to this date. Use it for fiscal year locking for example.' string='Global Lock To Date'
  • hard_lock_to_date Date
    help='Like the "Global Lock Date", but no exceptions are possible.' string='Lock To Date'
  • purchase_lock_to_date Date
    help='Prevents creation and modification of entries in purchase journals posterior to the defined date inclusive.'
  • sale_lock_to_date Date
    help='Prevents creation and modification of entries in sales journals posterior to the defined date inclusive.' string='Sales Lock To Date'
Public methods (2)
  • default_get(self, field_list)
    @api.model
  • execute(self)

New fields (8)
  • fiscalyear_lock_to_date Date
    help='No users can edit accounts posterior to this date. Use it for fiscal year locking for example.' string='Global Lock To Date' tracking=True
  • hard_lock_to_date Date
    help='Like the "Global Lock Date", but no exceptions are possible.' tracking=True
  • purchase_lock_to_date Date
    help='Prevents creation and modification of entries in purchase journals posterior to the defined date inclusive.' tracking=True
  • sale_lock_to_date Date
    help='Prevents creation and modification of entries in sales journals posterior to the defined date inclusive.' string='Sales Lock To Date' tracking=True
  • user_fiscalyear_lock_to_date Date
    compute='_compute_user_fiscalyear_lock_to_date'
  • user_hard_lock_to_date Date
    compute='_compute_user_hard_lock_to_date'
  • user_purchase_lock_to_date Date
    compute='_compute_user_purchase_lock_to_date'
  • user_sale_lock_to_date Date
    compute='_compute_user_sale_lock_to_date'
Public methods (1)
  • write(self, values)
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/17.0/account_lock_to_date
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSMiquel Raïch, OCA-git-bot, oca-ci, AlexPForgeFlow
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:01
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to set a Period and Fiscal year Locking end dates.
This will prevent users from posting journal entries on a date after the
defined period or fiscal year end date.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_update_lock_to_date_form_view account.update.lock_to_date.form account.update.lock_to_date form New
Models touched (3)

New fields (0)

No new fields.

Public methods (3)
  • action_post(self)
  • button_cancel(self)
  • button_draft(self)

New fields (3)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after and inclusive of this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after and inclusive of this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (2)
  • default_get(self, field_list)
    @api.model
  • execute(self)

New fields (2)
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (1)
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/16.0/account_lock_to_date
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSWeblate, Simone Rubino, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:47
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
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_update_lock_to_date_form_view account.update.lock_to_date.form account.update.lock_to_date form New
Models touched (3)

New fields (0)

No new fields.

Public methods (3)
  • action_post(self)
  • button_cancel(self)
  • button_draft(self)

New fields (3)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after and inclusive of this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after and inclusive of this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (2)
  • default_get(self, field_list)
    @api.model
  • execute(self)

New fields (2)
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (1)
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/15.0/account_lock_to_date
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSMiquel Raïch, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:34
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
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_update_lock_to_date_form_view account.update.lock_to_date.form account.update.lock_to_date form New
Models touched (3)

New fields (0)

No new fields.

Public methods (3)
  • action_post(self)
  • button_cancel(self)
  • button_draft(self)

New fields (3)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after and inclusive of this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after and inclusive of this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (2)
  • default_get(self, field_list)
    @api.model
  • execute(self)

New fields (2)
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (1)
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/14.0/account_lock_to_date
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSoca-travis, Weblate, OCA-git-bot, aromera, kaynnan
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:00
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
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_update_lock_to_date_form_view account.update.lock_to_date.form account.update.lock_to_date form New
Models touched (3)

New fields (0)

No new fields.

Public methods (3)
  • action_post(self)
  • button_cancel(self)
  • button_draft(self)

New fields (3)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after and inclusive of this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after and inclusive of this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (2)
  • default_get(self, field_list)
    @api.model
  • execute(self)

New fields (2)
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (1)
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/13.0/account_lock_to_date
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSRonald Portier, AaronHForgeFlow, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:13
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
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_update_lock_to_date_form_view account.update.lock_to_date.form account.update.lock_to_date form New
Models touched (3)

New fields (0)

No new fields.

Public methods (3)
  • action_post(self)
  • button_cancel(self)
  • button_draft(self)

New fields (3)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after and inclusive of this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after and inclusive of this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (2)
  • default_get(self, field_list)
    @api.model
  • execute(self)

New fields (2)
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (1)
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/12.0/account_lock_to_date
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSOCA Transbot, ahenriquez, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:18
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_update_lock_to_date_form_view account.update.lock_to_date.form account.update.lock_to_date form New
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (3)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after and inclusive of this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after and inclusive of this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (2)
  • default_get(self, field_list)
    @api.model
  • execute(self)
    @api.multi

New fields (2)
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (1)
  • write(self, vals)
    @api.multi
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/11.0/account_lock_to_date
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Eficent
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Eficent
COMMITTERS
COMMITTERSJordi Ballester Alomar, OCA Transbot, oca-travis, OCA-git-bot, michotm
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:58
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - analytic
    - web_planner
    - portal
    - http_routing
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
account_update_lock_to_date_form_view account.update.lock_to_date.form account.update.lock_to_date form New
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (3)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after and inclusive of this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after and inclusive of this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (2)
  • default_get(self, field_list)
    @api.model
  • execute(self)
    @api.multi

New fields (2)
  • fiscalyear_lock_to_date Date
    help='No users, including Advisers, can edit accounts after this date. Use it for fiscal year locking for example.' string='Lock To Date'
  • period_lock_to_date Date
    help="Only users with the 'Adviser' role can edit accounts after this date. Use it for period locking inside an open fiscal year, for example." string='Lock To Date for Non-Advisers'
Public methods (1)
  • write(self, vals)
    @api.multi
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/account-financial-tools
PULL REQUEST
PULL REQUEST[19.0][MIG] account_lock_to_date: Migration to 19.0 (#2277)