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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Nov 16
|
2462 | ||
|
4
Sep 24
|
19427 | ||
|
4
Jan 24
|
12554 | ||
|
4
Aug 23
|
28066 | ||
|
5
Jun 21
|
20803 |