Browse Source

[IMP] test

pull/84/head
Lorenzo Battistini 10 years ago
committed by eLBati
parent
commit
567d437e29
  1. 1
      field_validator/test/validator.yml

1
field_validator/test/validator.yml

@ -4,3 +4,4 @@
!python {model: ir.model.field}: | !python {model: ir.model.field}: |
field_ids = self.search(cr, uid, [('name', '=', 'email'), ('model', '=', 'res.partner')] field_ids = self.search(cr, uid, [('name', '=', 'email'), ('model', '=', 'res.partner')]
assert len(field_ids) == 1, 'There must be 1 email field' assert len(field_ids) == 1, 'There must be 1 email field'
self.write(cr, uid, field_ids, {'regex_validator': r'\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b'}
Loading…
Cancel
Save