Repository
OCA/account-financial-tools · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.13 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-financial-tools
Last tracking update
2026-08-07 08:42:53
Authors
Odoo Community Association (OCA), ForgeFlow
Maintainers
Odoo Community Association (OCA), ForgeFlow
Committers
Miquel Raïch, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
oca_all
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
HTTP endpoints (0)

No HTTP endpoints found for this module.

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)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
120 days ago
Last activity
14 days ago
Repository
OCA/account-financial-tools
Pull request
[19.0][MIG] account_lock_to_date: Migration to 19.0 (#2277)