Here I explain how to create a basic module in openerp .please follow the folder structure of modules ,this way you can create table and add datas inside the table.(model=postgres db,view-xml,python=controller....,This is the basic method )