|
|
@ -23,9 +23,9 @@ from openerp import models, fields |
|
|
|
|
|
|
|
class IrModelFieldsRegex(models.Model): |
|
|
|
_name = "ir.model.fields.regex" |
|
|
|
name = fields.Char('Description', size=512, required=True) |
|
|
|
name = fields.Char('Description', required=True) |
|
|
|
regex = fields.Char( |
|
|
|
'Regular Expression', size=512, required=True, |
|
|
|
'Regular Expression', required=True, |
|
|
|
help="Regular expression used to validate the field. For example, " |
|
|
|
"you can add the expression\n%s\nto the email field" |
|
|
|
% r'\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b') |