(self, fields_to_export)
return {'datas': self._export_rows(fields_to_export)}
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
Export fields for selected objects
Export fields for selected objects
def export_data(self, fields_to_export):
        """ 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
        """
        if not (self.env.is_admin() or self.env.user.has_group('base.group_allow_export')):
            raise UserError(_("You don't have the rights to export data. Please contact an Administrator."))
        fields_to_export = [fix_import_export_id_paths(f) for f in fields_to_export]
        return {'datas': self._export_rows(fields_to_export)}
def export_data ( self , fields_to_export ) : if not ( self . env . is_admin ( ) or self . env . user . has_group ( 'base.group_allow_export' ) ) : raise UserError ( _ ( "You don't have the rights to export data. Please contact an Administrator." ) ) fields_to_export = [ fix_import_export_id_paths ( f ) for f in fields_to_export ] return { 'datas' : self . _export_rows ( fields_to_export ) }