Browse Source

Old and new api methods can be freely mixed in the same models.Model subclass

pull/246/head
eLBati 9 years ago
parent
commit
9eb8c03d90
  1. 6
      base_field_validator/models/ir_model.py

6
base_field_validator/models/ir_model.py

@ -11,7 +11,6 @@ from openerp import SUPERUSER_ID
from openerp import models, fields, api, _
from openerp.exceptions import Warning
from openerp.osv import orm
class IrModel(models.Model):
@ -35,11 +34,6 @@ class IrModel(models.Model):
vals[validator_line.field_id.name]))
return True
class IrModel(orm.Model):
_inherit = 'ir.model'
def _field_validator_hook(self, cr, ids):
def _wrap_create():

Loading…
Cancel
Save