跳至內容
選單
此問題已被標幟
3182 瀏覽次數

Hi! i have a module

class staff_custom(models.Model):

_name = "staff.custom"

_description = "Staff"

def _select(self,uid,ids,vals,context=None):

return []

_columns = {

'code': fields.selection(_select,'Code')

}

I want build new module, when install new module, field 'code' in staff.custom have new value selection!

Please help me!

Thanks!

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
2月 22
5656
2
9月 15
4709
2
11月 23
18731
2
1月 19
4230
1
12月 17
3709