Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2708 มุมมอง

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)

อวตาร
ละทิ้ง