[IMP] Allows longer record rules (text).

bzr revid: jth@openerp.com-20100805134626-m0roia22nc6fv7f9
This commit is contained in:
Julien Thewys 2010-08-05 15:46:26 +02:00
parent 7b6b348700
commit 9048db178d
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ class ir_rule(osv.osv):
'model_id': fields.many2one('ir.model', 'Object',select=1, required=True),
'global': fields.function(_get_value, method=True, string='Global', type='boolean', store=True, help="If no group is specified the rule is global and applied to everyone"),
'groups': fields.many2many('res.groups', 'rule_group_rel', 'rule_group_id', 'group_id', 'Groups'),
'domain_force': fields.char('Domain', size=250),
'domain': fields.function(_domain_force_get, method=True, string='Domain', type='char', size=250),
'domain_force': fields.text('Domain'),
'domain': fields.function(_domain_force_get, method=True, string='Domain', type='text'),
'perm_read': fields.boolean('Apply For Read'),
'perm_write': fields.boolean('Apply For Write'),
'perm_create': fields.boolean('Apply For Create'),