from netforce.model import Model, fields, get_model class MatchingHDCaseFile(Model): _name="clinic.matching.hdcase.file" _transient=True _fields={ "matching_hdcase_id": fields.Many2One("clinic.matching.hdcase","Matching HD Case"), 'file': fields.File("File"), } MatchingHDCaseFile.register()