[REF] Refactoring
[IMP] Content-Type auto detection, odoo backend code refactoring