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

How do I accept only capitals fields before creating a record?

アバター
破棄
最善の回答

You have to override method create like this:

def create(self, cr, user, vals, context=None): # do something with values of field (in 'vals' dictionary)
return super(your_class, self).create(cr, user, vals, context=context)

アバター
破棄