Odoo Help

Welcome!

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.

0

how to use default_get() method in openerp 7.0

By
Maniganda
on 5/10/13, 5:44 AM 6,494 views

i am migrating the module from openerp 6.1 to 7.0 and i have used default get method, that is not working in openerp 7.0

2
LAKHSAM Khalid
On 5/10/13, 6:26 AM
def default_get(self, cr, uid, fields, context=None):
    data = super(curent_object, self).default_get(cr, uid, fields, context=context)
    data['field']=value
    return data

This is a sample example of default_get:

Thanks@ Lakhsam Give you +1 vote,this code very helpfull me

Ankit H Gandhi(AHG)
on 2/19/15, 5:09 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)

Stats

Asked: 5/10/13, 5:44 AM
Seen: 6494 times
Last updated: 3/16/15, 8:10 AM