Password Policy | Odoo Password Complexity, History and Expiry | Strong Password Rules | Password Reuse Block
by CODEerts https://www.codeerts.com$ 25.00

Security: stronger passwords, renewed on time Character rules, no reuse and password expiry for Odoo.Three settings next to Minimum Password Length. Ask for a mix of character types, refuse the user's recent passwords, and send internal users to the change password dialog when their password gets too old. ✓Character types: lowercase, uppercase, digit, symbol ✓No reuse of the last 1 to 10 passwords ✓Expiry after the number of days you set ✓Never locks anyone out: the dialog opens at login | Odoo 19·Community & Enterprise ![]() |
3 rules in General Settings | 10 previous passwords at most | 4 character types to choose from | 0 users locked out |
Three rules beside the minimum length
Odoo checks how long a password is. This checks what is in it, whether it was used before, and how old it is.
01 Character typesWhat a password contains.
| 02 HistoryNo going back.
| 03 ExpiryRenewed on time.
|
From the settings to a renewed password
Every picture is the real module on a demo database.
![]() Three settingsCharacter types, password history and password expiry, next to Minimum Password Length. | ![]() An expired passwordSara's password is 100 days old, so her login opens the change password dialog. |
![]() Too simpleA password with only lowercase letters and digits is refused. | ![]() Used beforeHer current password cannot be chosen again. |
Three steps to a password policy
Open General SettingsThe rules sit next to Minimum Password Length. |
Set the three rulesCharacter types, how many old passwords to refuse, and the number of days. |
Let users log inNew passwords follow the rules, and old ones are renewed when they expire. |
What it needs, and what it never does
Version 19.0 | License OPL-1 | Editions Community & Enterprise | Dependencies Password Policy, Signup (standard Odoo) |
Requirements✓Odoo 19, Community or Enterprise ✓Uses the standard password policy and signup modules ✓No new security groups ✓Technical name codeerts_password_policy | Rules✓Character types and history apply to every user who sets a password ✓Expiry applies to internal users with a local password ✓Each rule is off at 0 ✓Settings are kept per database |
Frequently asked questions
Install Password Policy and set Password Expiry to 90 in General Settings, next to Minimum Password Length. Once an internal user's password is older than that, their next login opens the change password dialog.
The login itself is never blocked, so nobody is locked out. The user lands on the change password dialog, and the rules for character types and history apply to the new password they choose.
The current password and up to the last 10 previous ones, as many as you set. Only password hashes are stored, in a table no user can read, not even an administrator.
No. Expiry applies to internal users with a local password. Character types and history apply to everyone who sets a password, including portal users and password resets.
Yes. A user with two factor authentication enters their code first, then sees the change password dialog.
Yes. It depends only on standard Odoo password and signup modules that ship with both.

About CODEerts
Full-Service Odoo ERP Company · Solutions That Scale
Every module in our store is built from real client work, tested in production and maintained long-term by a team of experienced Odoo consultants. When you need more than an app, we deliver the full solution.
01 Implementation Full Odoo roll-outs from requirements to go-live, across any industry and company size. | 02 Custom Development Bespoke modules, OWL components and business logic built precisely to your workflow. | 03 Migrations Zero-data-loss upgrades from older Odoo versions with full custom module porting. |
04 Integrations Payment gateways, shipping carriers, biometric devices, eCommerce and third-party APIs. | 05 Odoo Audits Performance, security and code-quality reviews that surface risks before they become problems. | 06 Support & Training Ongoing helpdesk, user training and monthly retainers so your team stays productive. |
Odoo Experts | 6+ Years | 150+ Projects | 10+ Industries | 250+ Published Apps |
More from CODEerts
Other apps we build to make Odoo do more. Tap any card to open it on the Odoo Apps Store.
Archive Anything | Transaction Flow Visualizer | Smart Mail Rebrand | Duplicate Record Detector |
AI Dashboard Builder | Advance Payment Pro | Dual Book & Tax Depreciation | Smart Duplicate Detector |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 203 |
| Technical Name |
codeerts_password_policy |
| License | OPL-1 |
| Website | https://www.codeerts.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.





Please log in to comment on this module