Odoo Help


Functional field output before save and Editable field?.

on 2/13/13, 5:39 AM 1,309 views

In openerp 7 Is it possible to functional field output shows before save the records and Editable functional field?

On 1/21/14, 11:39 PM

I think yes.

Example on_change method:. link text

Just add any field for output in your result.

def custom_function(self, cr, uid, ids,  field_name_from_xml,  context=None):
    # work with input data
    #... your result in custom_addr
    custom_addr = 'Barcelona'
    return {
        'value': {
            'address': custom_addr # adress is must in your xml declaration in this case

but note that whenever you click save it will load data from function only

on 1/22/14, 2:10 AM

Yes, in this case not need to save the data, this works when you change the filed value... as I know :-)

on 1/22/14, 2:17 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

1 follower(s)


Asked: 2/13/13, 5:39 AM
Seen: 1309 times
Last updated: 3/16/15, 8:10 AM