Skip to Content
Menu
This question has been flagged
1 Reply
3654 Views
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.


Avatar
Discard
Best Answer

Probably you need to override the read_group method and decrypt the field value, but remember this will slow down your system.

Avatar
Discard
Related Posts Replies Views Activity
2
Nov 24
267
1
Oct 24
335
4
Oct 24
324
2
Oct 24
361
2
Dec 24
670