Odoo Help


This community 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.


Functional field output before save and Editable field?.

on 2/13/13, 5:39 AM 909 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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