跳至內容
選單
此問題已被標幟
1 回覆
5044 瀏覽次數

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
11月 16
3517
4
9月 24
21291
4
1月 24
13973
4
12月 24
30796
5
6月 21
23553