Suppose my field is:
monthly_total = fields.Float(digits=(20, 2), required=True)
monthly_basic = fields.Float(string="Basic",digits=(20, 2), required=True)
this is very confidential data, so i would like to store encrypted value store in postgresql db.
but when read this field value it will be decrypted.
I am already trying using the following apps:
https://apps.odoo.com/apps/modules/11.0/base_encrypted_field/
encrypted = fields.Encrypted()
monthly_total = fields.Float(digits=(20, 2), required=True, index=True, encrypt='encrypted')
monthly_basic = fields.Float(string="Basic", digits=(20, 2), required=True,encrypt='encrypted')
But problem is, after using encrypted this field don't work in graph/pivots view and
also don't group by the upper field.
So i would like to store encrypted value store in postgresql db. but when read this
field value from odoo, it will be decrypted.
I would be grateful if anyone can help me about this issue.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Projet
- MRP
Cette question a été signalée
1
Répondre
4728
Vues
Probably you need to override the read_group method and decrypt the field value, but remember this will slow down your system.
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
0
déc. 25
|
203 | ||
|
|
1
déc. 25
|
376 | ||
|
|
2
nov. 25
|
464 | ||
|
|
1
nov. 25
|
2378 | ||
|
|
1
nov. 25
|
3644 |