Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5089 Lượt xem

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 .


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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/


 


Ảnh đại diện
Huỷ bỏ
Tác giả

with store=True?

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 16
3557
4
thg 9 24
21341
4
thg 1 24
14016
4
thg 12 24
30875
5
thg 6 21
23670