When creating a class with the new API, we should use models.Model
instead of just Model.
closes #3713
Methods defined on a model are executed on a recordset, and their ``self`` is
a recordset::
- class AModel(Model):
+ class AModel(models.Model):
_name = 'a.model'
def a_method(self):
# self can be anywhere between 0 records and all records in the
Model fields are defined as attributes on the model itself::
from openerp import models, fields
- class AModel(Model):
+ class AModel(models.Model):
_name = 'a.model.name'
field1 = fields.Char()