Odoo Help


How to store 2 fields in stock.quant database?

on 11/25/16, 8:35 AM 572 views

I have those two fields:

class gio_stock_quant(osv.osv):

_inherit = ['stock.quant']

_columns = {

'actualpp': fields.function(_calc_inventory_value_testn, string="Einzel Preis", type='float', readonly=True), 'sumaactualp': fields.function(_calc_inventory_value_test, string="Gesamtpreis", type='float', readonly=True)


How can I store that in the database? My problem is , everytime I uninstall the modul, and reinstall. I lose all my values in those fields.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/25/16, 8:35 AM
Seen: 572 times
Last updated: 11/25/16, 8:51 AM