Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2720 Tampilan

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

Avatar
Buang
Jawaban Terbai

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)

Avatar
Buang