parameters: (self, fields_to_export)
return_statement: return {'datas': self._export_rows(fields_to_export)}
docstring: 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
docstring_summary: Export fields for selected objects
docstring_tokens: Export fields for selected objects
function: 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)}
function_tokens: 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 ) }