تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5023 أدوات العرض

How can I store this value from this function in odoo database?

'sumaactualp': fields.function(_calc_inventory_value_test, string="Gesamtpreis", type='float'),


I mean when I uninstall the module, I lose all the values .


الصورة الرمزية
إهمال
أفضل إجابة

Hello,

You can use store property of function field. 

See below link for function field definition.

https://doc.odoo.com/6.0/developer/2_5_Objects_Fields_Methods/field_type/


 


الصورة الرمزية
إهمال
الكاتب

with store=True?

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
نوفمبر 16
3492
4
سبتمبر 24
21274
4
يناير 24
13950
4
ديسمبر 24
30778
5
يونيو 21
23520