Some code used frequently at 0k when dealing with OpenERP