Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5109 มุมมอง

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?

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 16
3575
How does Odoo store One2Many fields? แก้ไขแล้ว
4
ก.ย. 24
21375
4
ม.ค. 24
14051
4
ธ.ค. 24
30898
5
มิ.ย. 21
23712