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/
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
0
nov. 16
|
5504 | |||
|
How does Odoo store One2Many fields?
Opgelost
|
4
sep. 24
|
23951 | ||
|
4
jan. 24
|
16346 | |||
|
4
dec. 24
|
34648 | |||
|
5
jun. 21
|
27511 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.