跳至内容
菜单
此问题已终结
1 回复
2702 查看

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)

形象
丢弃