OCA/server-tools

View on GitHub

Showing 207 of 317 total issues

Function _get_smtp_conf has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def _get_smtp_conf(self, cr, uid, ids, name, args, context=None):
Severity: Minor
Found in mail_environment/env_mail.py - About 45 mins to fix

    Function _type_search has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def _type_search(self, cr, uid, obj, name, args, context=None):
    Severity: Minor
    Found in mail_environment/env_mail.py - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              if model_field_id and model_field_obj.browse(
                                      cr, uid, model_field_id,
                                      context=context).translate:
                                  translation_ids = translation_obj.search(cr, uid, [
                                      ('res_id', 'in', context.get('active_ids')),
      Severity: Major
      Found in mass_editing/wizard/mass_editing_wizard.py - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if (res['type'] == search_vals and
                                        res['id'] not in result_ids):
                                    result_ids.append(res['id'])
                    else:
        Severity: Major
        Found in mail_environment/env_mail.py - About 45 mins to fix

          Function _get_incom_conf has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def _get_incom_conf(self, cr, uid, ids, name, args, context=None):
          Severity: Minor
          Found in mail_environment/env_mail.py - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    for m2m_id in vals.get(split_key, False)[0][2]:
                                        m2m_list.append((4, m2m_id))
                                    dict.update({split_key: m2m_list})
            Severity: Major
            Found in mass_editing/wizard/mass_editing_wizard.py - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      if modifiers[field][modifier]:
                                          modifiers[field][modifier].insert(0, '|')
                                      modifiers[field][modifier].append(
              Severity: Major
              Found in fetchmail_attach_from_folder/model/fetchmail_server.py - About 45 mins to fix

                Function write has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def write(self, cr, uid, ids, vals, context=None):
                Severity: Minor
                Found in security_protector/security_protector.py - About 35 mins to fix

                  Function write has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def write(self, cr, uid, ids, vals, context=None):
                  Severity: Minor
                  Found in base_optional_quick_create/model.py - About 35 mins to fix

                    Function map_ldap_attributes has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def map_ldap_attributes(self, cr, uid, conf, login, ldap_entry):
                    Severity: Minor
                    Found in users_ldap_mail/users_ldap_model.py - About 35 mins to fix

                      Function datetime_formatter has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def datetime_formatter(self, value, lang=None, template=MODE_DATETIME,
                      Severity: Minor
                      Found in datetime_formatter/models.py - About 35 mins to fix

                        Function text_from_html has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def text_from_html(self, html_content, max_words=None, max_chars=None,
                        Severity: Minor
                        Found in html_text/models/ir_fields_converter.py - About 35 mins to fix

                          Function _create_qweb has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def _create_qweb(self, name, qweb_name, module, model, arch):
                          Severity: Minor
                          Found in base_report_auto_create_qweb/models/report_xml.py - About 35 mins to fix

                            Function do_deactivate_unknown_users has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def do_deactivate_unknown_users(
                            Severity: Minor
                            Found in users_ldap_populate/models/users_ldap.py - About 35 mins to fix

                              Function search_matches has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def search_matches(self, cr, uid, conf, mail_message, mail_message_org):
                              Severity: Minor
                              Found in fetchmail_attach_from_folder/match_algorithm/email_exact.py - About 35 mins to fix

                                Function search_matches has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def search_matches(self, cr, uid, conf, mail_message, mail_message_org):
                                Severity: Minor
                                Found in fetchmail_attach_from_folder/match_algorithm/email_domain.py - About 35 mins to fix

                                  Function field_to_populate_as_related has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def field_to_populate_as_related(self, cr, uid, field, company_cols, context=None):
                                  Severity: Minor
                                  Found in configuration_helper/config.py - About 35 mins to fix

                                    Function get_email_template has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def get_email_template(self, cr, uid, template_id=False, record_id=None,
                                    Severity: Minor
                                    Found in email_template_template/model/email_template.py - About 35 mins to fix

                                      Function create has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                                  def create(self, cr, uid, vals, context=None, **kwargs):
                                      Severity: Minor
                                      Found in base_field_validator/models/ir_model.py - About 35 mins to fix

                                        Function attach_mail has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            def attach_mail(self, connection, object_id, folder, mail_message, msgid):
                                        Severity: Minor
                                        Found in fetchmail_attach_from_folder/model/fetchmail_server.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language