コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5870 ビュー

Hi,

I would like know the way to get the list of mandatory fields from any object.

Will any orm method be some help?

your support is appreciated much.

thanks

アバター
破棄
著作者 最善の回答

Hi,

My colleague found the logic for this.

fields = self.pool.get('sale.order').fields_get(cr, uid)

required_fields = [field for field in fields if 'required' in fields[field] and fields[field]['required']]

print required_fields

Thanks

アバター
破棄
関連投稿 返信 ビュー 活動
4
12月 19
6239
0
3月 17
4578
1
1月 17
9660
3
10月 24
14253
2
3月 15
4977