Odoo Help


Functional Field execute and save in DB

on 4/29/13, 2:51 AM 2,346 views

Openerp 7.0 Function field Save="True" method executed only after the edit the records. How to execute the method before the edit the record and also save in database?


Daniel Reis

--Daniel Reis--
| 7 8 9
Linda-a-Velha, Portugal
--Daniel Reis--

Author of the "Odoo Development Essentials" book.

Applications Manager at Securitas Portugal

Github: https://github.com/dreispt

Twitter; @reis_pt

Daniel Reis
On 1/10/14, 2:07 PM

Only using a hack: use an on_change method.

Please can someone give me an example how to use on_change method with a function field?

Soukaina SBITTI
on 2/26/14, 8:11 AM

I've heard about the mysterious behavior, that on_change methods can return values for function fields. But how exactly is that done? Do i have to write a on_change method for every field that is listet in the store-dictionary? That would be verbose.. And not possible for fields of other objects...

René Schuster
on 6/26/14, 9:35 AM

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

2 follower(s)


Asked: 4/29/13, 2:51 AM
Seen: 2346 times
Last updated: 3/16/15, 8:10 AM