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
- Бухгалтерия
- Склад
- PoS
- Проекты
- MRP
Этот вопрос был отмечен
1
Ответить
4726
Представления
Probably you need to override the read_group method and decrypt the field value, but remember this will slow down your system.
Не оставайтесь в стороне – присоединяйтесь к обсуждению!
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
|
0
дек. 25
|
203 | ||
|
|
1
дек. 25
|
376 | ||
|
|
2
нояб. 25
|
464 | ||
|
|
1
нояб. 25
|
2378 | ||
|
|
1
нояб. 25
|
3644 |