Skip to content
Health
77/100
good
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 15 months ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 8 Odoo series since 11.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.13 MB
Module directory on disk
Code analysis 0 migration notes 4 models 1 view 0 HTTP endpoints

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.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
oca_all

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…

Loading…