跳至內容
選單
此問題已被標幟
2 回覆
12698 瀏覽次數

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
6月 24
1606
4
11月 21
4641
2
6月 20
5458
1
5月 20
5206
1
5月 20
3190