'Export fields for selected objects
:param fields_to_export: list of fields
:param raw_data: True to return value in native Python type
:rtype: dictionary with a *datas* matrix
This method is used when exporting data via client menu'

@api.multi
def export_data(self, fields_to_export, raw_data=False):

    fields_to_export = map(fix_import_export_id_paths, fields_to_export)
    if raw_data:
        self = self.with_context(export_raw_data=True)
    return {'datas': self._export_rows(fields_to_export)}
