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 .
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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?
Yes.
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
0
nov. 16
|
3498 | ||
|
4
sept. 24
|
21277 | ||
|
4
janv. 24
|
13961 | ||
|
4
déc. 24
|
30785 | ||
|
5
juin 21
|
23535 |