-1
我只是修改我的OpenERP,但是......我有點糊塗了比較字符串兩場
如何比較場A和場B,但它不應該是相同的字符串
這是我的代碼
def check_description(self, cr, uid,ids, context=None):
field = self.browse(cr, uid, ids, context=context)
check = True
for field in fields:
check = check and (not field.A==field.B)
return check
_constraints = [(_check_description, 'Please use a different string',['Warning','Description'])]
但是......我用on_change打電話。有沒有響應
請幫助我。感謝的