from netforce.model import Model, fields class CauseChronic(Model): _name="clinic.cause.chronic" _string="Cause Chronic" _fields={ "name": fields.Char("Name",required=True,search=True), 'default': fields.Boolean("Default"), 'sequence': fields.Integer("Sequence"), } _defaults={ 'sequence': 0, } CauseChronic.register()