تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
12692 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة
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

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يونيو 24
1605
4
نوفمبر 21
4635
2
يونيو 20
5456
1
مايو 20
5204
1
مايو 20
3185