Skip to content

[ADD][16.0] base_field_encrypted#906

Open
antoniodavid wants to merge 1 commit intoOCA:16.0from
antoniodavid:16.0-add-base_field_encrypted
Open

[ADD][16.0] base_field_encrypted#906
antoniodavid wants to merge 1 commit intoOCA:16.0from
antoniodavid:16.0-add-base_field_encrypted

Conversation

@antoniodavid
Copy link

This PR introduces base_field_encrypted, a base module that allows developers to store sensitive information (API tokens, SMTP passwords, third-party credentials) encrypted in the database.

In standard Odoo, using password="True" only masks the value in the UI but does not encrypt it. The value can still be retrieved in plaintext via ORM read() responses and is stored unencrypted in PostgreSQL.

This module provides transparent field-level encryption using the cryptography.fernet library, enabling secure data-at-rest protection while preserving the standard Odoo developer experience.

@antoniodavid antoniodavid force-pushed the 16.0-add-base_field_encrypted branch 3 times, most recently from ffe280f to 7389e89 Compare March 6, 2026 22:30
@antoniodavid antoniodavid force-pushed the 16.0-add-base_field_encrypted branch from 7389e89 to febcf95 Compare March 6, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant