openerp api scripts