Odoo Help

0

how to use default_get() method in openerp 7.0

By
Maniganda
on 5/10/13, 5:44 AM 7,656 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

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.

Register

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)

Stats

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