Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
12740 มุมมอง

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

คำตอบที่ดีที่สุด

https://doc.odoo.com/6.0/developer/2_5_Objects_Fields_Methods/methods/

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มิ.ย. 24
1645
4
พ.ย. 21
4671
2
มิ.ย. 20
5483
1
พ.ค. 20
5254
1
พ.ค. 20
3228