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 .
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/
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|
0
marrask. 16
|
5468 | |||
|
How does Odoo store One2Many fields?
Ratkaistu
|
4
syysk. 24
|
23937 | ||
|
4
tammik. 24
|
16332 | |||
|
4
jouluk. 24
|
34630 | |||
|
5
kesäk. 21
|
27503 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.