Based on OpenERP6.1, Tryton3.0 and other good ideas