Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Extra Tools
  3. Global Lock Period v 19.0
  4. Sales Conditions FAQ

Global Lock Period

by OYO Info
Odoo

$ 60.00

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 15.0 16.0 17.0 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 684
Technical Name global_lock_period
LicenseLGPL-3
Versions 15.0 16.0 17.0 18.0 19.0

Global Lock Period

Lock any date field, on any model, during any period — including its lines, its status changes, and everything else that comes with it.

Global Lock Period banner

Why you need it

At month-end or year-end closing, regular users can still create or backdate documents — Sale Orders, Invoices, Stock Moves, Timesheets, anything with a date — into a period that should already be closed. Worse, a document dated inside a closed period can often still be reset to draft and its lines or amounts edited, even if its date itself is never touched. Global Lock Period stops all of that, generically, on any model, without touching a single line of code per document type.

Works on Any Model

Protects any Date or Datetime field on any standard or custom model — Sale, Purchase, Invoicing, Inventory, Timesheets, or your own apps. No per-model configuration required.

Protects the Whole Record

Optionally lock down the entire document once its date falls inside the period — blocking "Set to Draft", status changes, and any field edit, not only the date field itself.

Cascades to Lines

Editing an Invoice Line or Order Line doesn't call the parent record's write — Odoo writes the line model directly. Global Lock Period follows that link automatically and protects the lines too.

Users & Group Exceptions

Grant bypass access per individual user or per security group — for example, let Accounting Advisors post corrections while everyone else stays locked out.

Two Enforcement Modes

Restrict hard-blocks the create/write/delete with a clear error message. Allow & Log lets the change through but records it for later review.

Full Audit Log

Every blocked or logged attempt is recorded with user, date/time, model, record, operation (Create/Write), field(s), and the attempted value — even when the transaction itself is rolled back.

Three Layers of Protection

1. The Locked Field Itself

Creating or editing a record with its date set inside the locked period is blocked immediately, whichever user or screen it comes from — forms, imports, or automations.

2. The Whole Record

Enable Protect Whole Record to also stop any other change once the date is already inside the period — including clicking "Set to Draft" and editing amounts.

3. Its Lines

Add the related line model (e.g. Invoice Lines) under Protected Child/Line Models and the link field is auto-detected, so adding, editing or deleting a line is blocked too.

See It In Action

Configuring a Global Lock Period

1. Configure the Lock

Define the period, pick the model and date field to protect, choose enforcement, and enable Protect Whole Record.

Configuring protected child/line models with auto-detected link field

2. Protect Its Lines Too

Add the line model (e.g. Sales Order Line) — the link field back to the parent is auto-detected for you.

Validation error blocking creation of a Sale Order

3. Blocked on Create

Creating a new Sale Order dated inside the lock period is rejected immediately with a clear message.

Validation error blocking a whole locked Journal Entry

4. Whole Record Frozen

Once locked, the entire document is protected — here, a posted Journal Entry can't be touched at all, even to reset it to draft.

Validation error blocking an order line quantity change

5. Lines Protected Too

Even without touching the date, changing a line's quantity on a locked Sale Order is blocked — the cascading child-model protection at work.

Lock Period audit log list showing several blocked attempts

6. Review the Audit Trail

Every blocked attempt is recorded with user, model, record, operation, the field(s) involved, and the attempted value.

Built for compliance-minded teams

No JavaScript hacks, no per-document customization: the lock is enforced at the ORM level so it applies consistently everywhere a record is created, written, or deleted — including imports, automations, and server actions.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with