from netforce.model import Model, fields class Nation(Model): _name="clinic.nation" _string="Nationality" _key=['code'] _fields={ "name": fields.Char("Name",required=True,search=True), "code": fields.Char("Code",search=True), } Nation.register()