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:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- المشروع
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
4741
أدوات العرض
Probably you need to override the read_group method and decrypt the field value, but remember this will slow down your system.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
0
ديسمبر 25
|
73 | ||
|
|
1
ديسمبر 25
|
179 | ||
|
|
0
ديسمبر 25
|
234 | ||
|
|
1
ديسمبر 25
|
398 | ||
|
|
2
نوفمبر 25
|
479 |