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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
3654
Views
Probably you need to override the read_group method and decrypt the field value, but remember this will slow down your system.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Nov 24
|
267 | ||
|
1
Oct 24
|
335 | ||
|
4
Oct 24
|
324 | ||
Connect Odoo with unopim
Solved
|
|
2
Oct 24
|
361 | |
|
2
Dec 24
|
670 |