Repository Analysis

odoo/odoo

Odoo. Open Source Apps To Grow Your Business.

14.0 Low AI signal View on GitHub
14.0
Adjusted Score
14.0
Raw Score
100%
Time Factor
2026-05-30
Last Push
51,734
Stars
Python
Language
3,018,721
Lines of Code
22141
Files
31744
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 214HIGH 507MEDIUM 3414LOW 27609

Pattern Findings

31744 matches across 19 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers17886 hits · 16974 pts
SeverityFileLineSnippet
LOWodoo/netsvc.py329def showwarning_with_traceback(message, category, filename, lineno, file=None, line=None):
LOWodoo/http.py928def _check_and_complete_route_definition(controller_cls, submethod, merged_routing):
LOWodoo/http.py1072 def get_missing_session_identifiers(self, identifiers):
LOWodoo/http.py1442def make_request_wrap_methods(attr):
LOWodoo/http.py1987 def _get_profiler_context_manager(self):
LOWodoo/http.py452def get_session_max_inactivity(env):
LOWodoo/tools/mail.py154 def kill_conditional_comments(self, doc):
LOWodoo/tools/mail.py183 def _tag_matching_regex_in_text(regex, node, tag='span', attrs=None):
LOWodoo/tools/mail.py725def generate_tracking_message_id(res_id):
LOWodoo/tools/mail.py796def email_split_and_normalize(text):
LOWodoo/tools/mail.py801def email_split_and_format_normalize(text):
LOWodoo/tools/misc.py289def file_open_temporary_directory(env: Environment):
LOWodoo/tools/misc.py1583def format_decimalized_number(number: float, decimal: int = 1) -> str:
LOWodoo/tools/misc.py1608def format_decimalized_amount(amount: float, currency=None) -> str:
LOWodoo/tools/misc.py1847def limited_field_access_token(record, field_name, timestamp=None, *, scope):
LOWodoo/tools/misc.py1883def verify_limited_field_access_token(record, field_name, access_token, *, scope):
LOWodoo/tools/misc.py1952def named_to_positional_printf(string: str, args: Mapping) -> tuple[str, tuple]:
LOWodoo/tools/translate.py96def is_translatable_attrib_value(node):
LOWodoo/tools/translate.py106def is_translatable_attrib_text(node):
LOWodoo/tools/translate.py129def translate_format_string_expression(term, callback):
LOWodoo/tools/translate.py1073def _extract_translatable_qweb_terms(element, callback):
LOWodoo/tools/translate.py1142def extract_spreadsheet_terms(fileobj, keywords, comment_tags, options):
LOWodoo/tools/translate.py1258 def _get_translatable_records(self, imd_records):
LOWodoo/tools/translate.py1326 def _export_translatable_records(self, records, field_names):
LOWodoo/tools/translate.py1388 def _export_translatable_records(self):
LOWodoo/tools/translate.py1425 def _verified_module_filepaths(self, fname, path, root):
LOWodoo/tools/translate.py1464 def _export_translatable_resources(self):
LOWodoo/tools/translate.py1806def get_datafile_translation_path(module_name: str) -> Iterator[str]:
LOWodoo/tools/translate.py1824 def _read_code_translations_file(fileobj, filter_func):
LOWodoo/tools/translate.py1854 def _load_python_translations(self, module_name, lang):
LOWodoo/tools/translate.py1884def _get_translation_upgrade_queries(cr, field):
LOWodoo/tools/config.py539 def _flush_log_and_warn_entries(cls):
LOWodoo/tools/template_inheritance.py23def add_stripped_items_before(node, spec, extract):
LOWodoo/tools/mimetypes.py55def _check_open_container_format(data):
LOWodoo/tools/js_transpiler.py187def convert_export_function_default(content):
LOWodoo/tools/js_transpiler.py216def convert_export_class_default(content):
LOWodoo/tools/js_transpiler.py305def convert_variable_export_default(content):
LOWodoo/tools/js_transpiler.py476def convert_legacy_default_import(content):
LOWodoo/tools/js_transpiler.py531def convert_default_and_named_import(content):
LOWodoo/tools/js_transpiler.py627def convert_default_and_star_import(content):
LOWodoo/tools/js_transpiler.py651def convert_unnamed_relative_import(content):
LOWodoo/tools/js_transpiler.py687def relative_path_to_module_path(url, path_rel):
LOWodoo/tools/js_transpiler.py731def get_aliased_odoo_define_content(module_path, content):
LOWodoo/tools/rendering_tools.py56def convert_inline_template_to_qweb(template):
LOWodoo/tools/appdirs.py387def _get_win_folder_from_registry(csidl_name):
LOWodoo/tools/appdirs.py431def _get_win_folder_with_ctypes(csidl_name):
LOWodoo/tools/xml_utils.py24def remove_control_characters(byte_node):
LOWodoo/tools/xml_utils.py315def validate_xml_from_attachment(env, xml_content, xsd_name, reload_files_function=None, prefix=None):
LOWodoo/tools/view_validation.py152def _get_expression_contextual_values(item_ast):
LOWodoo/tools/view_validation.py229def get_expression_field_names(expression):
LOWodoo/tools/sql.py361def convert_column_translatable(cr, tablename, columnname, columntype):
LOWodoo/tools/sql.py672def increment_fields_skiplock(records, *fields):
LOWodoo/tools/sql.py708def value_to_translated_trigram_pattern(value):
LOWodoo/tools/sql.py734def pattern_to_translated_trigram_pattern(pattern):
LOWodoo/tools/profiler.py423 def _get_directive_profiling_name(self, directive, attrib):
LOWodoo/tools/image.py532def image_guess_size_from_field_name(field_name: str) -> Tuple[int, int]:
LOWodoo/tools/pdf/__init__.py652 def _create_attachment_object(self, attachment):
LOWodoo/tools/pdf/signature.py75 def _load_key_and_certificate(self) -> tuple[Optional[PrivateKeyTypes], Optional[Certificate]]:
LOWodoo/tools/pdf/signature.py445 def _compute_digest_from_byte_range(self, data: bytes, byte_range: list[int]) -> bytes:
LOWodoo/tools/pdf/signature.py466 def _create_number_array_object(self, array: list[int]) -> ArrayObject:
17826 more matches not shown…
Decorative Section Separators2649 hits · 9026 pts
SeverityFileLineSnippet
MEDIUModoo/http.py675# =========================================================
MEDIUModoo/http.py677# =========================================================
MEDIUModoo/http.py960# =========================================================
MEDIUModoo/http.py962# =========================================================
MEDIUModoo/http.py1316# =========================================================
MEDIUModoo/http.py1318# =========================================================
MEDIUModoo/http.py1424# =========================================================
MEDIUModoo/http.py1426# =========================================================
MEDIUModoo/http.py1826 # =====================================================
MEDIUModoo/http.py1828 # =====================================================
MEDIUModoo/http.py1904 # =====================================================
MEDIUModoo/http.py1906 # =====================================================
MEDIUModoo/http.py2189 # =====================================================
MEDIUModoo/http.py2191 # =====================================================
MEDIUModoo/http.py2362# =========================================================
MEDIUModoo/http.py2364# =========================================================
MEDIUModoo/http.py2669# =========================================================
MEDIUModoo/http.py2671# =========================================================
MEDIUModoo/http.py217# =========================================================
MEDIUModoo/http.py219# =========================================================
MEDIUModoo/http.py341# =========================================================
MEDIUModoo/http.py343# =========================================================
MEDIUModoo/http.py404 # -----------
MEDIUModoo/http.py482# =========================================================
MEDIUModoo/http.py484# =========================================================
MEDIUModoo/init.py11# ----------------------------------------------------------
MEDIUModoo/init.py15# ----------------------------------------------------------
MEDIUModoo/init.py21# ----------------------------------------------------------
MEDIUModoo/init.py24# ----------------------------------------------------------
MEDIUModoo/init.py31# ----------------------------------------------------------
MEDIUModoo/init.py34# ----------------------------------------------------------
MEDIUModoo/tools/mail.py64#----------------------------------------------------------
MEDIUModoo/tools/mail.py66#----------------------------------------------------------
MEDIUModoo/tools/mail.py467# ----------------------------------------------------------
MEDIUModoo/tools/mail.py469# ----------------------------------------------------------
MEDIUModoo/tools/mail.py711#----------------------------------------------------------
MEDIUModoo/tools/mail.py713#----------------------------------------------------------
MEDIUModoo/tools/misc.py138#----------------------------------------------------------
MEDIUModoo/tools/misc.py140#----------------------------------------------------------
MEDIUModoo/tools/misc.py148# ----------------------------------------------------------
MEDIUModoo/tools/misc.py150# ----------------------------------------------------------
MEDIUModoo/tools/misc.py191# ----------------------------------------------------------
MEDIUModoo/tools/misc.py193# ----------------------------------------------------------
MEDIUModoo/tools/misc.py316#----------------------------------------------------------
MEDIUModoo/tools/misc.py318#----------------------------------------------------------
MEDIUModoo/tools/misc.py707# ---------------------------------------------
MEDIUModoo/tools/misc.py709# ---------------------------------------------
MEDIUModoo/tools/cloc.py38 #------------------------------------------------------
MEDIUModoo/tools/cloc.py40 #------------------------------------------------------
MEDIUModoo/tools/cloc.py102 #------------------------------------------------------
MEDIUModoo/tools/cloc.py104 #------------------------------------------------------
MEDIUModoo/tools/cloc.py300 #------------------------------------------------------
MEDIUModoo/tools/cloc.py302 #------------------------------------------------------
MEDIUModoo/tools/image.py316# ----------------------------------------
MEDIUModoo/tools/image.py318# ---------------------------------------
MEDIUModoo/tools/pdf/__init__.py20# ----------------------------------------------------------
MEDIUModoo/tools/pdf/__init__.py25# ----------------------------------------------------------
MEDIUModoo/tools/pdf/__init__.py68# ----------------------------------------------------------
MEDIUModoo/tools/pdf/__init__.py73# ----------------------------------------------------------
MEDIUModoo/osv/expression.py164# --------------------------------------------------
2589 more matches not shown…
Unused Imports7024 hits · 6763 pts
SeverityFileLineSnippet
LOWodoo/sql_db.py9
LOWodoo/tools/misc.py5
LOWodoo/tools/misc.py44
LOWodoo/tools/misc.py44
LOWodoo/tools/misc.py44
LOWodoo/tools/translate.py8
LOWodoo/tools/date_utils.py1
LOWodoo/tools/cache.py3
LOWodoo/tools/__init__.py4
LOWodoo/tools/__init__.py5
LOWodoo/tools/__init__.py6
LOWodoo/tools/__init__.py7
LOWodoo/tools/__init__.py7
LOWodoo/tools/__init__.py8
LOWodoo/tools/__init__.py9
LOWodoo/tools/__init__.py9
LOWodoo/tools/__init__.py9
LOWodoo/tools/__init__.py9
LOWodoo/tools/__init__.py9
LOWodoo/tools/__init__.py9
LOWodoo/tools/__init__.py10
LOWodoo/tools/__init__.py10
LOWodoo/tools/__init__.py10
LOWodoo/tools/__init__.py10
LOWodoo/tools/__init__.py10
LOWodoo/tools/__init__.py11
LOWodoo/tools/__init__.py11
LOWodoo/tools/__init__.py12
LOWodoo/tools/__init__.py13
LOWodoo/tools/__init__.py14
LOWodoo/tools/__init__.py15
LOWodoo/tools/__init__.py16
LOWodoo/tools/__init__.py17
LOWodoo/tools/__init__.py17
LOWodoo/tools/__init__.py17
LOWodoo/tools/__init__.py17
LOWodoo/tools/__init__.py18
LOWodoo/tools/__init__.py18
LOWodoo/tools/__init__.py18
LOWodoo/tools/__init__.py19
LOWodoo/tools/__init__.py19
LOWodoo/tools/__init__.py19
LOWodoo/tools/__init__.py19
LOWodoo/tools/__init__.py20
LOWodoo/tools/intervals.py2
LOWodoo/tools/mimetypes.py8
LOWodoo/tools/appdirs.py10
LOWodoo/tools/appdirs.py459
LOWodoo/tools/cloc.py11
LOWodoo/tools/i18n.py1
LOWodoo/tools/sql.py3
LOWodoo/tools/which.py45
LOWodoo/tools/which.py45
LOWodoo/tools/which.py46
LOWodoo/tools/image.py10
LOWodoo/tools/func.py2
LOWodoo/tools/set_expression.py1
LOWodoo/tools/pdf/_pypdf2_2.py1
LOWodoo/tools/pdf/_pypdf2_2.py1
LOWodoo/tools/pdf/_pypdf2_2.py1
6964 more matches not shown…
Hallucination Indicators214 hits · 2388 pts
SeverityFileLineSnippet
CRITICALodoo/addons/test_http/tests/test_common.py36 odoo.http.root.session_store.store.clear()
CRITICALodoo/addons/base/models/res_partner.py76 address_view_id = self.env.company.country_id.address_view_id.sudo()
CRITICALaddons/sale/models/sale_order.py1709 self.env.cr.precommit.data.pop(f'mail.tracking.{self._name}', {})
CRITICALaddons/sale/static/src/js/sale_product_field.js109 this.props.record.model.root._isReadonly("order_line"))
CRITICAL…at/static/src/core/web/livechat_channel_model_patch.js14 this.store.env.services.notification.add(_t("You joined %s.", this.name), {
CRITICAL…at/static/src/core/web/livechat_channel_model_patch.js19 this.store.env.services.orm.call("im_livechat.channel", "action_join", [this.id])
CRITICAL…at/static/src/core/web/livechat_channel_model_patch.js28 this.store.env.services.notification.add(_t("You left %s.", this.name), {
CRITICAL…at/static/src/core/web/livechat_channel_model_patch.js33 this.store.env.services.orm.call("im_livechat.channel", "action_quit", [this.id])
CRITICAL…ons/im_livechat/static/src/core/common/thread_patch.js20 if (this.props.thread.livechatVisitorMember.im_status.includes("offline")) {
CRITICAL…ivechat/static/src/embed/common/store_service_patch.js24 this.store.env.services.bus_service.addChannel(
CRITICAL…ivechat/static/src/embed/common/store_service_patch.js30 this.store.env.services.bus_service.deleteChannel(`mail.guest_${this.guest_token}`);
CRITICALaddons/google_calendar/tests/test_sync_common.py152 funcs = self.env.cr.postcommit._funcs.copy()
CRITICALaddons/google_calendar/models/calendar.py379 self.env.cr.precommit.data.pop(f'mail.tracking.create.{event._name}.{event.id}', None)
CRITICALaddons/pos_viva_com/static/src/app/payment_viva_com.js164 result = await this.env.services.orm.silent.call(
CRITICAL…s/calendar/static/src/activity/activity_model_patch.js16 const action = await this.store.env.services.orm.call(
CRITICAL…s/calendar/static/src/activity/activity_model_patch.js21 this.store.env.services.action.doAction(action);
CRITICAL…tatic/src/views/calendar_form/calendar_quick_create.js67 const breadcrumb = this.actionService.currentController.config.breadcrumbs.at(-2);
CRITICAL…ee_calendar/common/attendee_calendar_common_popover.js55 this.props.record.rawRecord.partner_ids.includes(user.partnerId) ||
CRITICAL…ee_calendar/common/attendee_calendar_common_popover.js70 this.props.record.rawRecord.partner_ids.some((partner) => partner !== user.partnerId) &&
CRITICAL…dons/pos_safaricom/static/src/app/payment_safaricom.js26 return this.env.services.orm.silent.call("pos.payment.method", action, [
CRITICAL…et/static/tests/charts/model/odoo_chart_plugin.test.js1497 const scaleCallback = config.options.scales.x.ticks.callback.bind(fakeChart);
CRITICALaddons/mail/models/mail_thread.py556 initial_values = self.env.cr.precommit.data.setdefault(f'mail.tracking.{self._name}', {})
CRITICALaddons/mail/models/mail_thread.py570 initial_values = self.env.cr.precommit.data.pop(f'mail.tracking.{self._name}', {})
CRITICALaddons/mail/models/mail_thread.py586 authors = self.env.cr.precommit.data.setdefault(f'mail.tracking.author.{self._name}', {})
CRITICALaddons/mail/models/mail_thread.py592 self._message_track_post_template(self.env.cr.precommit.data.pop(f'mail.tracking.create.{self._name}.{self.id}',
CRITICALaddons/mail/models/mail_thread.py600 body_values = self.env.cr.precommit.data.setdefault(f'mail.tracking.message.{self._name}', {})
CRITICALaddons/mail/models/mail_thread.py535 initial_values = self.env.cr.precommit.data.setdefault(f'mail.tracking.{self._name}', {})
CRITICALaddons/mail/models/mail_thread.py668 bodies = self.env.cr.precommit.data.pop(f'mail.tracking.message.{self._name}', {})
CRITICALaddons/mail/models/mail_thread.py669 authors = self.env.cr.precommit.data.pop(f'mail.tracking.author.{self._name}', {})
CRITICALaddons/mail/models/mail_thread.py380 self.env.cr.precommit.data.setdefault(f'mail.tracking.create.{self._name}.{thread.id}', changes)
CRITICALaddons/mail/models/mail_tracking_duration_mixin.py105 if data := self.env.cr.precommit.data.get(f'mail.tracking.{self._name}', {}).get(self._origin.id):
CRITICALaddons/mail/static/src/core/web/thread_model_patch.js39 const data = await this.store.env.services.orm.call(this.model, "message_get_followers", [
CRITICALaddons/mail/static/src/core/web/thread_model_patch.js46 const data = await this.store.env.services.orm.call(
CRITICALaddons/mail/static/src/core/web/activity_model_patch.js31 this.store.env.services.action.doAction(
CRITICALaddons/mail/static/src/core/web/activity_model_patch.js54 await this.store.env.services.orm.call("mail.activity", "action_feedback", [[this.id]], {
CRITICALaddons/mail/static/src/core/web/activity_model_patch.js65 const action = await this.store.env.services.orm.call(
CRITICALaddons/mail/static/src/core/web/thread_actions.js9 open: ({ store }) => store.env.services.orm.silent.call("mail.message", "mark_all_as_read"),
CRITICALaddons/mail/static/src/core/common/suggestion_hook.js123 const selection = this.comp.editor.shared.selection.getEditableSelection();
CRITICALaddons/mail/static/src/core/common/suggestion_hook.js221 this.comp.editor.shared.selection.getEditableSelection();
CRITICALaddons/mail/static/src/core/common/suggestion_hook.js222 this.comp.editor.shared.selection.setSelection({
CRITICALaddons/mail/static/src/core/common/suggestion_hook.js240 this.comp.editor.shared.dom.insert(inlineElement);
CRITICALaddons/mail/static/src/core/common/suggestion_hook.js242 this.comp.editor.shared.selection.setSelection({ anchorNode, anchorOffset });
CRITICALaddons/mail/static/src/core/common/suggestion_hook.js243 this.comp.editor.shared.dom.insert("\u00A0");
CRITICALaddons/mail/static/src/core/common/suggestion_hook.js244 this.comp.editor.shared.history.addStep();
CRITICALaddons/mail/static/src/core/common/chat_window.js155 this.store.env.services.command.openMainPalette({ searchValue: "@" });
CRITICALaddons/mail/static/src/core/common/store_service.js724 const [userData] = await this.env.services.orm.silent.read(
CRITICALaddons/mail/static/src/core/common/store_service.js745 const [userId] = await this.env.services.orm.silent.search(
CRITICALaddons/mail/static/src/core/common/message_model.js533 this.store.env.services.notification.add(notification, { type });
CRITICALaddons/mail/static/src/core/common/message_model.js541 this.store.env.services.notification.add(
CRITICALaddons/mail/static/src/core/common/message_model.js546 this.store.env.services.notification.add(_t("Message Copied!"), { type: "info" });
CRITICALaddons/mail/static/src/core/common/message_model.js699 await this.store.env.services.orm.silent.call("mail.message", "set_message_done", [
CRITICALaddons/mail/static/src/core/common/message_model.js706 await this.store.env.services.orm.silent.call(
CRITICALaddons/mail/static/src/core/common/message_model.js720 this.store.env.services.notification.add(
CRITICALaddons/mail/static/src/core/common/settings_model.js399 await this.store.env.services.orm.call(
CRITICALaddons/mail/static/src/core/common/settings_model.js420 await this.store.env.services.orm.call(
CRITICALaddons/mail/static/src/core/common/mail_guest_model.js48 this.store.env.services.bus_service.deleteChannel(this.previousPresencechannel);
CRITICALaddons/mail/static/src/core/common/mail_guest_model.js51 this.store.env.services.bus_service.addChannel(this.presenceChannel);
CRITICALaddons/mail/static/src/core/common/mail_guest_model.js66 this.store.env.services.im_status.updateBusPresence();
CRITICALaddons/mail/static/src/core/common/thread_model.js468 return this.store.env.services.orm.call(
CRITICALaddons/mail/static/src/core/common/thread_model.js703 await this.store.env.services.orm.silent.call("mail.message", "mark_all_as_read", [
154 more matches not shown…
Cross-File Repetition461 hits · 2305 pts
SeverityFileLineSnippet
HIGHodoo/tools/set_expression.py0returns whether ``self`` is the universal set, that contains all possible elements.
HIGHodoo/tools/set_expression.py0returns whether ``self`` is the universal set, that contains all possible elements.
HIGHodoo/tools/set_expression.py0returns whether ``self`` is the universal set, that contains all possible elements.
HIGHodoo/addons/test_access_rights/tests/test_feedback.py0uh-oh! looks like you have stumbled upon some top-secret records. sorry, %s (id=%s) doesn't have 'write' access to: - %s
HIGHodoo/addons/test_access_rights/tests/test_feedback.py0uh-oh! looks like you have stumbled upon some top-secret records. sorry, %s (id=%s) doesn't have 'write' access to: - %s
HIGHodoo/addons/test_access_rights/tests/test_feedback.py0uh-oh! looks like you have stumbled upon some top-secret records. sorry, %s (id=%s) doesn't have 'write' access to: - %s
HIGHodoo/addons/test_access_rights/tests/test_feedback.py0uh-oh! looks like you have stumbled upon some top-secret records. sorry, %s (id=%s) doesn't have 'write' access to: - %s
HIGHodoo/addons/test_inherit/tests/test_inherit.py0check that attribute selection_add=... extends selection on fields.
HIGHodoo/addons/test_inherit/tests/test_inherit.py0check that attribute selection_add=... extends selection on fields.
HIGH…ons/test_inherit_depends/tests/test_inherit_depends.py0check that attribute selection_add=... extends selection on fields.
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0checks that a bundle is invalidated when its content is modified by adding a file to source.
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0checks that a bundle is invalidated when its content is modified by adding a file to source.
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0checks that a bundle is invalidated when its content is modified by adding a file to source.
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;; /* /test_assetsbundle/static/src/js/test_jsfile2.js */
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;; /* /test_assetsbundle/static/src/js/test_jsfile2.js */
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;; /* /test_assetsbundle/static/src/js/test_jsfile2.js */
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile3.js */ var c=3;
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile3.js */ var c=3;
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile3.js */ var c=3;
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile3.js */ var c=3;
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;; /* /test_assetsbundle/static/src/js/test_jsfile2.js */
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;; /* /test_assetsbundle/static/src/js/test_jsfile2.js */
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;; /* /test_assetsbundle/static/src/js/test_jsfile2.js */
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;; /* /test_assetsbundle/static/src/js/test_jsfile2.js */
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;; /* /test_assetsbundle/static/src/js/test_jsfile2.js */
HIGH…oo/addons/test_assetsbundle/tests/test_assetsbundle.py0/* /test_assetsbundle/static/src/js/test_jsfile1.js */ var a=1;; /* /test_assetsbundle/static/src/js/test_jsfile2.js */
HIGHodoo/addons/test_orm/tests/test_search.py0select "test_orm_related"."id" from "test_orm_related" where "test_orm_related"."foo_id" in ( select "test_orm_related_f
HIGHodoo/addons/test_orm/tests/test_search.py0select "test_orm_related"."id" from "test_orm_related" where "test_orm_related"."foo_id" in ( select "test_orm_related_f
HIGHodoo/addons/test_orm/tests/test_search.py0select "test_orm_related"."id" from "test_orm_related" where "test_orm_related"."foo_id" in ( select "test_orm_related_f
HIGHodoo/addons/test_orm/tests/test_search.py0select "test_orm_related"."id" from "test_orm_related" where "test_orm_related"."foo_id" in ( select "test_orm_related_f
HIGHodoo/addons/test_orm/tests/test_search.py0select "test_orm_related"."id" from "test_orm_related" where "test_orm_related"."foo_id" in ( select "test_orm_related_f
HIGHodoo/addons/test_orm/tests/test_search.py0update "test_orm_city" set "name" = "__tmp"."name"::varchar, "write_date" = "__tmp"."write_date"::timestamp, "write_uid"
HIGHodoo/addons/test_orm/tests/test_search.py0update "test_orm_city" set "name" = "__tmp"."name"::varchar, "write_date" = "__tmp"."write_date"::timestamp, "write_uid"
HIGHodoo/addons/test_orm/tests/test_search.py0update "test_orm_city" set "name" = "__tmp"."name"::varchar, "write_date" = "__tmp"."write_date"::timestamp, "write_uid"
HIGHodoo/addons/test_orm/tests/test_search.py0update "test_orm_city" set "name" = "__tmp"."name"::varchar, "write_date" = "__tmp"."write_date"::timestamp, "write_uid"
HIGHodoo/addons/test_orm/tests/test_search.py0update "test_orm_city" set "name" = "__tmp"."name"::varchar, "write_date" = "__tmp"."write_date"::timestamp, "write_uid"
HIGHodoo/addons/test_orm/tests/test_search.py0update "test_orm_city" set "country_id" = "__tmp"."country_id"::int4, "write_date" = "__tmp"."write_date"::timestamp, "w
HIGHodoo/addons/test_orm/tests/test_search.py0update "test_orm_city" set "country_id" = "__tmp"."country_id"::int4, "write_date" = "__tmp"."write_date"::timestamp, "w
HIGHodoo/addons/test_orm/tests/test_search.py0update "test_orm_city" set "country_id" = "__tmp"."country_id"::int4, "write_date" = "__tmp"."write_date"::timestamp, "w
HIGHodoo/addons/test_orm/tests/test_search.py0select "test_orm_city"."id" from "test_orm_city" left join "test_orm_country" as "test_orm_city__country_id" on ("test_o
HIGHodoo/addons/test_orm/tests/test_search.py0select "test_orm_city"."id" from "test_orm_city" left join "test_orm_country" as "test_orm_city__country_id" on ("test_o
HIGHodoo/addons/test_orm/tests/test_search.py0select "test_orm_city"."id" from "test_orm_city" left join "test_orm_country" as "test_orm_city__country_id" on ("test_o
HIGHodoo/addons/test_orm/tests/test_search.py0select "test_orm_person"."id" from "test_orm_person" where date_part(%s, "test_orm_person"."birthday") in %s order by "t
HIGHodoo/addons/test_orm/tests/test_search.py0select "test_orm_person"."id" from "test_orm_person" where date_part(%s, "test_orm_person"."birthday") in %s order by "t
HIGHodoo/addons/test_orm/tests/test_search.py0select "test_orm_person"."id" from "test_orm_person" where date_part(%s, "test_orm_person"."birthday") in %s order by "t
HIGHodoo/addons/test_orm/tests/test_fields.py0check the consistency of relational fields with inverse(s).
HIGHodoo/addons/test_orm/tests/test_fields.py0check the consistency of relational fields with inverse(s).
HIGHodoo/addons/test_orm/tests/test_fields.py0check the consistency of relational fields with inverse(s).
HIGHodoo/addons/test_orm/tests/test_fields.py0check the consistency of relational fields with inverse(s).
HIGHodoo/addons/base/tests/test_expression.py0select "res_partner"."id" from "res_partner" where "res_partner"."company_id" in %s order by "res_partner"."complete_nam
HIGHodoo/addons/base/tests/test_expression.py0select "res_partner"."id" from "res_partner" where "res_partner"."company_id" in %s order by "res_partner"."complete_nam
HIGHodoo/addons/base/tests/test_expression.py0select "res_partner"."id" from "res_partner" where "res_partner"."company_id" in %s order by "res_partner"."complete_nam
HIGHodoo/addons/base/tests/test_expression.py0select "res_partner"."id" from "res_partner" left join "res_company" as "res_partner__company_id" on ("res_partner"."com
HIGHodoo/addons/base/tests/test_expression.py0select "res_partner"."id" from "res_partner" left join "res_company" as "res_partner__company_id" on ("res_partner"."com
HIGHodoo/addons/base/tests/test_expression.py0select "res_partner"."id" from "res_partner" left join "res_company" as "res_partner__company_id" on ("res_partner"."com
401 more matches not shown…
Self-Referential Comments647 hits · 1895 pts
SeverityFileLineSnippet
MEDIUModoo/loglevels.py48 """This method is similar to the builtin `unicode`, except
MEDIUModoo/tools/image.py321 """This function is used to calculate the dominant colors when given a list of colors
MEDIUModoo/tools/pdf/__init__.py472 # Create a new object containing an array referencing embedded file
MEDIUModoo/tools/pdf/signature.py147 # Creating the appearance (visible elements of the signature)
MEDIUModoo/tools/arabic_reshaper/letters.py1# The following code was copied from the original author's repository
MEDIUModoo/tools/arabic_reshaper/__init__.py1# The following code was copied from the original author's repository
MEDIUModoo/addons/test_main_flows/__init__.py8# This module is defined in community but some steps (defined with 'edition: "enterprise"')
MEDIUModoo/addons/test_orm/tests/test_web_save.py10 # Create a new record, without unity specification (it should return only the id)
MEDIUModoo/addons/test_orm/tests/test_web_save.py19 # Create a new record, with unity specification
MEDIUModoo/addons/test_orm/tests/test_fields.py592 # Create an ir.rule, which forces to flush field 'active'
MEDIUModoo/addons/test_orm/tests/test_one2many.py460 # Create a parent record
MEDIUModoo/addons/base/tests/test_res_config.py20 # Define the test values
MEDIUModoo/addons/base/tests/test_ir_attachment.py332 # Create an attachment as user without res_model/res_id
MEDIUModoo/addons/base/tests/test_ir_attachment.py336 # Create an attachment as superuser without res_model/res_id
MEDIUModoo/addons/base/tests/test_res_users.py643 # Create a first session that will be used to revoke other sessions
MEDIUModoo/addons/base/tests/test_res_users.py646 # Create a second session that will be used to check it has been revoked
MEDIUModoo/addons/base/tests/test_res_users.py715 # Creating an unscoped key from a scoped key raises an error
MEDIUModoo/addons/base/tests/test_res_users.py721 # Creating a key with a different scope raises an error
MEDIUModoo/addons/base/tests/test_res_users.py727 # Creating a key with the same scope doesn't raise
MEDIUModoo/addons/base/tests/test_res_users.py732 # Creating a key with a scope from an unscoped key doesn't raise
MEDIUModoo/addons/base/tests/test_res_users.py737 # Creating an unscoped key from another unscoped key doesn't raise
MEDIUModoo/addons/base/tests/test_user_has_group.py152 #Create a user with two groups of user types kind (Internal and Portal)
MEDIUModoo/addons/base/tests/test_ir_mail_server.py481 # Create a sample .eml file content
MEDIUModoo/addons/base/models/ir_actions_report.py557 # Create a temporary session which will not create device logs
MEDIUModoo/addons/base/models/ir_ui_view.py718 """This method is meant to be overridden by other modules.
MEDIUModoo/addons/base/models/ir_ui_view.py387 # This function is only interested in locating invalid locators.
MEDIUModoo/addons/base/models/ir_qweb.py809 # Create the iterator from the template
MEDIUModoo/_monkeypatches/num2words.py11# The following section of the code is used to monkey patch
MEDIUModoo/_monkeypatches/site.py39 # This function is borrowed from psycogreen module which is licensed
MEDIUModoo/orm/models.py1799 # Create a mapping from each unique SQL GROUP BY term to its bitmask value.
MEDIUModoo/orm/models_transient.py63 # This method is shared by all transient models therefore,
MEDIUMaddons/auth_totp_mail/tests/test_totp.py43 # Create an API key for the user
MEDIUM…ns/website_sale_loyalty/tests/test_shop_sale_coupon.py201 # Create a gift card to be used
MEDIUM…e_sale_loyalty/tests/test_website_sale_auto_invoice.py18 # Create a discount code
MEDIUM…le_loyalty/tests/test_website_sale_loyalty_delivery.py72 # Create a gift card to be used
MEDIUM…le_loyalty/tests/test_website_sale_loyalty_delivery.py79 # Create a 50% discount on order code
MEDIUM…le_loyalty/tests/test_website_sale_loyalty_delivery.py189 # Create a discount code
MEDIUMaddons/l10n_pl_edi/tests/test_l10n_pl_edi.py330 # Create a Bank Account for the Company
MEDIUMaddons/website_event_track/tests/test_website_event.py61 # Create a website record
MEDIUMaddons/website_event_track/controllers/event_track.py239 # Create the dict that contains the tracks at the correct time_slots / locations coordinates
MEDIUMaddons/l10n_in_edi/models/account_move.py373 # Creating a lambda function so it fetches the odoobot id only when needed
MEDIUMaddons/sale/tests/test_access_rights.py31 # Create the SO with a specific salesperson
MEDIUMaddons/sale/tests/test_payment_flow.py283 # Create the payment
MEDIUMaddons/sale/tests/test_payment_flow.py300 # Create the payment
MEDIUMaddons/sale/tests/test_payment_flow.py140 # Create the payment
MEDIUMaddons/sale/tests/test_payment_flow.py170 # Create the payment
MEDIUMaddons/sale/tests/test_payment_flow.py206 # Create the payment
MEDIUMaddons/sale/tests/test_payment_flow.py245 # Create the payment
MEDIUMaddons/sale/tests/test_payment_flow.py267 # Create the payment
MEDIUMaddons/sale/tests/test_payment_flow.py313 # Create the payment
MEDIUMaddons/sale/tests/test_taxes_downpayment.py201 # Create a down payment invoice of 30%.
MEDIUMaddons/sale/tests/test_taxes_downpayment.py246 # Create the final invoice.
MEDIUMaddons/sale/tests/test_taxes_downpayment.py342 # Create the final invoice.
MEDIUMaddons/sale/tests/test_taxes_downpayment.py427 # Create the final invoice.
MEDIUMaddons/sale/tests/test_taxes_downpayment.py562 # Create the final invoice.
MEDIUMaddons/sale/tests/test_taxes_downpayment.py588 # Create a new final invoice.
MEDIUMaddons/sale/tests/test_taxes_downpayment.py644 # Create a down payment invoice of 100%.
MEDIUMaddons/sale/tests/test_taxes_downpayment.py693 # Create the final invoice.
MEDIUMaddons/sale/tests/test_taxes_downpayment.py778 # Create a down payment invoice of 100%.
MEDIUMaddons/sale/tests/test_taxes_downpayment.py827 # Create the final invoice.
587 more matches not shown…
Deep Nesting1514 hits · 1254 pts
SeverityFileLineSnippet
LOWodoo/netsvc.py178
LOWodoo/netsvc.py59
LOWodoo/http.py822
LOWodoo/http.py1698
LOWodoo/http.py1987
LOWodoo/http.py2785
LOWodoo/sql_db.py635
LOWodoo/tools/mail.py173
LOWodoo/tools/mail.py279
LOWodoo/tools/mail.py536
LOWodoo/tools/facade.py41
LOWodoo/tools/misc.py616
LOWodoo/tools/speedscope.py163
LOWodoo/tools/translate.py140
LOWodoo/tools/translate.py1073
LOWodoo/tools/translate.py1142
LOWodoo/tools/translate.py1884
LOWodoo/tools/translate.py205
LOWodoo/tools/translate.py850
LOWodoo/tools/translate.py1258
LOWodoo/tools/translate.py1388
LOWodoo/tools/translate.py1464
LOWodoo/tools/translate.py1605
LOWodoo/tools/config.py724
LOWodoo/tools/config.py898
LOWodoo/tools/template_inheritance.py71
LOWodoo/tools/template_inheritance.py109
LOWodoo/tools/parse_version.py25
LOWodoo/tools/date_utils.py108
LOWodoo/tools/date_utils.py273
LOWodoo/tools/date_utils.py312
LOWodoo/tools/convert.py75
LOWodoo/tools/convert.py667
LOWodoo/tools/convert.py336
LOWodoo/tools/cache.py183
LOWodoo/tools/cache.py209
LOWodoo/tools/intervals.py33
LOWodoo/tools/intervals.py82
LOWodoo/tools/mimetypes.py156
LOWodoo/tools/appdirs.py76
LOWodoo/tools/cloc.py90
LOWodoo/tools/cloc.py120
LOWodoo/tools/test_reports.py23
LOWodoo/tools/test_reports.py69
LOWodoo/tools/test_reports.py127
LOWodoo/tools/lru.py62
LOWodoo/tools/osutil.py51
LOWodoo/tools/barcode.py16
LOWodoo/tools/view_validation.py51
LOWodoo/tools/view_validation.py82
LOWodoo/tools/sql.py89
LOWodoo/tools/profiler.py364
LOWodoo/tools/profiler.py423
LOWodoo/tools/profiler.py618
LOWodoo/tools/profiler.py672
LOWodoo/tools/image.py288
LOWodoo/tools/set_expression.py471
LOWodoo/tools/set_expression.py570
LOWodoo/tools/_vendor/send_file.py32
LOWodoo/tools/pdf/__init__.py161
1454 more matches not shown…
Excessive Try-Catch Wrapping398 hits · 411 pts
SeverityFileLineSnippet
LOWodoo/netsvc.py258 except Exception:
LOWodoo/loglevels.py102 except Exception as e:
LOWodoo/loglevels.py111 except Exception:
LOWodoo/http.py2014 except Exception:
LOWodoo/http.py2283 except Exception as exc: # noqa: BLE001
LOWodoo/http.py2303 except Exception as exc: # noqa: BLE001
LOWodoo/http.py2847 except Exception as exc:
LOWodoo/sql_db.py147 except Exception:
LOWodoo/sql_db.py434 except Exception as e:
MEDIUModoo/sql_db.py240def __exit__(self, exc_type, exc_value, traceback):
LOWodoo/tools/mail.py459 except Exception:
LOWodoo/tools/misc.py470 except Exception:
LOWodoo/tools/misc.py943 except Exception:
LOWodoo/tools/misc.py1327 except Exception: # noqa: BLE001
LOWodoo/tools/misc.py1331 except Exception: # noqa: BLE001
LOWodoo/tools/misc.py1498 except Exception:
LOWodoo/tools/misc.py1553 except Exception:
LOWodoo/tools/translate.py1251 except Exception:
LOWodoo/tools/translate.py1459 except Exception:
LOWodoo/tools/convert.py100 except Exception:
LOWodoo/tools/convert.py617 except Exception as e:
LOWodoo/tools/convert.py776 except Exception:
LOWodoo/tools/cache.py307 except Exception: # noqa: BLE001
LOWodoo/tools/mimetypes.py172 except Exception:
LOWodoo/tools/mimetypes.py205 except Exception: # noqa: BLE001
LOWodoo/tools/mimetypes.py221 except Exception: # noqa: BLE001
LOWodoo/tools/cloc.py60 except Exception:
LOWodoo/tools/cloc.py132 except Exception:
MEDIUModoo/tools/cloc.py50def parse_py(self, s):
LOWodoo/tools/test_reports.py52 except Exception:
LOWodoo/tools/test_reports.py222 except Exception as e:
LOWodoo/tools/osutil.py98 except Exception:
LOWodoo/tools/barcode.py33 except Exception: # noqa: BLE001
LOWodoo/tools/view_validation.py308 except Exception:
LOWodoo/tools/safe_eval.py269 except Exception as e:
LOWodoo/tools/safe_eval.py413 except Exception as e:
LOWodoo/tools/profiler.py578 except Exception:
LOWodoo/tools/func.py111 except Exception:
LOWodoo/tools/_vendor/sessions.py226 except Exception:
LOWodoo/tools/pdf/__init__.py397 except Exception: # noqa: BLE001
LOWodoo/addons/test_http/tests/test_session.py179 except Exception: # noqa: BLE001
LOWodoo/addons/test_http/tests/test_session.py187 except Exception: # noqa: BLE001
LOWodoo/addons/base/tests/test_test_suite.py83 except Exception as e:
LOWodoo/addons/base/tests/test_test_suite.py368 except Exception:
LOWodoo/addons/base/tests/test_test_suite.py403 except Exception:
MEDIUModoo/addons/base/tests/test_test_suite.py400def alpha():
LOWodoo/addons/base/wizard/base_import_language.py42 except Exception as e:
LOWodoo/addons/base/models/ir_default.py40 except Exception: # noqa: BLE001
LOWodoo/addons/base/models/ir_default.py100 except Exception:
LOWodoo/addons/base/models/ir_mail_server.py356 except Exception as e:
LOWodoo/addons/base/models/ir_mail_server.py363 except Exception:
LOWodoo/addons/base/models/ir_mail_server.py859 except Exception as e:
LOWodoo/addons/base/models/ir_rule.py73 except Exception as e:
MEDIUModoo/addons/base/models/ir_model.py721def _onchange_relation(self):
LOWodoo/addons/base/models/ir_model.py960 except Exception:
LOWodoo/addons/base/models/ir_model.py1757 except Exception:
LOWodoo/addons/base/models/ir_model.py2268 except Exception: # pylint: disable=broad-except
LOWodoo/addons/base/models/ir_model.py2404 except Exception:
LOWodoo/addons/base/models/ir_model.py2564 except Exception:
LOWodoo/addons/base/models/ir_autovacuum.py60 except Exception:
338 more matches not shown…
Over-Commented Block313 hits · 280 pts
SeverityFileLineSnippet
LOWodoo/tools/lru.py21
LOWodoo/tools/pdf/signature.py121 # Assigning the newly created field to a page
LOWodoo/tools/pdf/signature.py181 })
LOWodoo/tools/pdf/signature.py221 # Setting up the actual signature contents with placeholders for /Contents and /ByteRange
LOWodoo/tools/babel/javascript_extractor.py21 # e.g. ((1, 'c'), 2)
LOWodoo/tools/babel/python_extractor.py21 # -> Indicates the first argument is a context key and the second is the translatable term, like in `pgettext`
LOWodoo/tools/babel/python_extractor.py221 # so we don't wan't to extract it.
LOWodoo/tools/arabic_reshaper/letters.py1# The following code was copied from the original author's repository
LOWodoo/tools/arabic_reshaper/__init__.py1# The following code was copied from the original author's repository
LOWodoo/osv/expression.py301 # commited, i.e. its terms added to the ``commits`` list along with
LOWodoo/addons/test_main_flows/__init__.py1# -*- coding: utf-8 -*-
LOW…/addons/test_lint/tests/_odoo_checker_sql_injection.py281 return True
LOWodoo/addons/test_lint/tests/test_override_signatures.py221 raise TypeError(msg) from None
LOWodoo/addons/test_orm/tests/test_fields.py881 self.env.flush_all()
LOWodoo/addons/test_orm/tests/test_fields.py1961 deleted.unlink()
LOWodoo/addons/test_orm/tests/test_fields.py3901 # other user that bypassed the sanitize)
LOWodoo/addons/test_orm/tests/test_fields.py3981 # | | | |
LOWodoo/addons/base/tests/test_orm.py381 # | (ondelete='restrict') have db ON DELETE action
LOWodoo/addons/base/tests/test_expression.py401 non_partner_id = max(all_partners.ids) + 1
LOWodoo/addons/base/tests/test_reports.py421 # leaving this as reference but this is to fragile to make a strict assertion
LOWodoo/addons/base/tests/test_translate.py701 # Country = self.env['res.country']
LOWodoo/addons/base/tests/test_translate.py1881 # view1_en_copy.update_field_translations('arch_db', {
LOWodoo/addons/base/tests/test_db_cursor.py241 # which is set as an integer in our DSN/connection_info
LOWodoo/addons/base/models/ir_logging.py1# Part of Odoo. See LICENSE file for full copyright and licensing details.
LOWodoo/addons/base/models/ir_logging.py41 # DROP CONSTRAINT unconditionally takes an ACCESS EXCLUSIVE lock
LOWodoo/addons/base/models/ir_ui_view.py921 if node.get('position') in ('after', 'before', 'inside'):
LOWodoo/addons/base/models/ir_ui_view.py981 # We achieve a pre-order depth-first hierarchy traversal where
LOWodoo/addons/base/models/ir_ui_view.py1001 # 5 [7, 8, 3, 4]
LOWodoo/addons/base/models/ir_ui_view.py1341 parent = node.getparent()
LOWodoo/addons/base/models/ir_cron.py321 other jobs.
LOWodoo/tests/common.py2401 # setting a cookie on domain='' path='/'.
LOWodoo/orm/models.py4241 # is a record created by xml/csv file, as these are not connected
LOWodoo/orm/models.py4421 # Protect the field from being recomputed while being
LOWodoo/orm/models.py4441 with env.protecting(protected, self):
LOWodoo/orm/models.py4461
LOWodoo/orm/models.py6761 :param before: whether called before modifying records ``self``
LOWodoo/orm/models.py6781 # - mark G to recompute on records,
LOWodoo/orm/fields.py341 if attr.startswith('_related_'):
LOWodoo/orm/fields.py361 # runtime on the registry class of the model. The occurrences of the field
LOWodoo/orm/fields.py681 # of prefetching for each field access. In order to clarify the impact
LOWodoo/orm/fields.py1681 # on a real record:
LOWodoo/orm/model_classes.py41#
LOWodoo/orm/model_classes.py61# A3 A2 A1 <- model definitions
LOWodoo/orm/model_classes.py81# \ | /
LOWodoo/orm/model_classes.py101# definition. There are a number of cases where the field cannot be used
LOWodoo/orm/model_classes.py121# class A1(Model): Model
LOWodoo/orm/fields_properties.py181 # value, where relational field values have a display name.
LOWodoo/orm/environments.py561 self.registry = registry
LOWodoo/service/server.py521 # but which finished before the server could restart.
LOWodoo/modules/module_graph.py41# |
LOWodoo/modules/module_graph.py61# +- | module6 |
LOWodoo/modules/module_graph.py81# 'to upgrade': module4, module6
LOWodoo/modules/module_graph.py101# Sometimes the dependency may be changed for sake of upgrade
LOWodoo/modules/module_graph.py121# | | |
LOWodoo/upgrade_code/17.5-00-example.py21 return
LOWaddons/sale/models/sale_order.py1641 'ref': ', '.join(refs)[:2000],
LOWaddons/website_sale_comparison_wishlist/__init__.py1# -*- coding: utf-8 -*-
LOWaddons/sale_mrp_margin/__init__.py1# -*- coding: utf-8 -*-
LOWaddons/calendar/models/calendar_recurrence.py521 self.ensure_one()
LOWaddons/calendar/models/res_users.py101
253 more matches not shown…
Fake / Example Data227 hits · 233 pts
SeverityFileLineSnippet
LOWodoo/tools/mail.py896 >>> email_anonymize('admin@example.com')
LOWodoo/tools/mail.py970 >>> formataddr(('John Doe', 'johndoe@example.com'))
LOWodoo/tools/mail.py971 '"John Doe" <johndoe@example.com>'
LOWodoo/addons/base/tests/test_res_users.py495 me.email = "foo@bar.com"
LOWodoo/addons/base/tests/test_res_users.py496 self.assertEqual(me.email, "foo@bar.com")
LOWodoo/addons/base/tests/test_res_users.py503 other.email = "foo@bar.com"
LOWodoo/addons/base/tests/test_mail.py852 ('"Admin" <admin@example.com>', ['admin@example.com']),
LOWodoo/addons/base/tests/test_mail.py853 ('"Admin" <admin@example.com>, Demo <demo@test.com>', ['admin@example.com', 'demo@test.com']),
LOWodoo/addons/base/tests/test_mail.py854 ('admin@example.com', ['admin@example.com']),
LOWodoo/addons/base/tests/test_mail.py855 ('"Admin" <admin@example.com>, Demo <malformed email>', ['admin@example.com']),
LOWodoo/addons/base/tests/test_mail.py905 ('admin@example.com', 'a****@example.com', 'a****@e******.com'), # short
LOWodoo/addons/base/tests/test_format_address_mixin.py68 'name': 'John Doe',
LOWodoo/addons/base/tests/test_format_address_mixin.py69 'street': '123 Main Street',
LOWodoo/addons/base/tests/test_format_address_mixin.py76 self.assertIn('John Doe', partner.display_name)
LOWodoo/addons/base/tests/test_format_address_mixin.py80 self.assertIn('123 Main Street', display_name)
LOWodoo/addons/base/tests/test_configmanager.py240 'email_from': 'admin@example.com',
LOWodoo/addons/base/tests/test_configmanager.py544 'email_from': 'admin@example.com',
LOWodoo/addons/base/tests/test_configmanager.py670 'email_from': 'admin@example.com',
LOW…dons/auth_signup/views/auth_signup_login_templates.xml43 <input type="text" name="name" t-att-value="name" id="name" class="form-control" placeholder="Jo
LOWaddons/sale/tests/test_sale_to_invoice.py1064 'email': 'test@test.com',
LOWaddons/im_livechat/tests/test_message.py51 'email': 'user@example.com',
LOW…m_livechat/static/tests/embed/livechat_service.test.js71 const userId = pyEnv["res.users"].create({ name: "John Doe", im_status: "online" });
LOW…m_livechat/static/tests/embed/livechat_service.test.js73 name: "John Doe",
LOW…m_livechat/static/tests/embed/livechat_service.test.js80 await contains(".o-mail-Message-author", { text: "John Doe" });
LOWaddons/sale_gelato/tests/test_delivery_carrier.py17 'email': 'test@test.com',
LOW…hr_recruitment_survey/tests/test_recruitment_survey.py49 'partner_name': 'Jane Doe',
LOWaddons/portal/tests/test_portal.py31 'street': '123 Main St',
LOW…tic/tests/tours/website_event_booth_sale_pricelists.js36 this.anchor.value = 'John Doe';
LOW…t_booth_sale/static/tests/tours/website_event_booth.js34 this.anchor.value = 'John Doe';
LOWaddons/rating/tests/test_security.py18 cls.env, name='Jean Admin', login='user_mana', email='admin@example.com',
LOW…ck/tests/test_website_sale_stock_stock_notification.py57 website.company_id.partner_id.email = "test@test.com"
LOWaddons/test_mass_mailing/tests/test_mailing_test.py41 'email_to': 'test@test.com',
LOWaddons/test_mass_mailing/tests/test_mailing_test.py89 'email_to': 'test@test.com',
LOWaddons/test_mass_mailing/tests/test_mailing_test.py127 'email_to': 'test@test.com',
LOWaddons/test_mass_mailing/tests/test_mailing_test.py143 self.assertSentEmail(self.env.user.partner_id, ['test@test.com'],
LOWaddons/test_mass_mailing/tests/test_mailing_test.py163 'test@test.com',
LOWaddons/mail/tests/test_mail_template.py159 'email_to': 'foo@bar.com',
LOWaddons/mail/tests/test_mail_template.py505 'email_from': 'admin@example.com',
LOWaddons/mail/tests/test_mail_template.py506 'email_to': 'user@example.com',
LOWaddons/mail/static/tests/core/search_highlight.test.js121 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOWaddons/mail/static/tests/core/search_highlight.test.js138 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOWaddons/mail/static/tests/core/search_highlight.test.js199 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOWaddons/mail/static/tests/message/message_reply.test.js87 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOWaddons/mail/static/tests/message/message_reply.test.js210 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOW…s/mail/static/tests/chatter/web/chatter_search.test.js26 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOW…s/mail/static/tests/chatter/web/chatter_search.test.js35 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOW…s/mail/static/tests/chatter/web/chatter_search.test.js45 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOW…s/mail/static/tests/chatter/web/chatter_search.test.js64 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOW…s/mail/static/tests/chatter/web/chatter_search.test.js83 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOW…s/mail/static/tests/chatter/web/chatter_search.test.js100 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOWaddons/mail/static/tests/chatter/web/chatter.test.js50 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOWaddons/mail/static/tests/chatter/web/chatter.test.js84 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOWaddons/mail/static/tests/chatter/web/chatter.test.js115 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOWaddons/mail/static/tests/chatter/web/chatter.test.js177 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOWaddons/mail/static/tests/chatter/web/chatter.test.js189 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOWaddons/mail/static/tests/chatter/web/chatter.test.js203 const partnerId = pyEnv["res.partner"].create({ name: "John Doe" });
LOWaddons/mail/static/tests/chatter/web/chatter.test.js721 name: "John Doe",
LOWaddons/mail/static/tests/chatter/web/chatter.test.js725 name: "John Doe",
LOWaddons/mail/static/tests/chatter/web/chatter.test.js731 await contains(".o-mail-RecipientsInput .o_tag_badge_text", { text: "John Doe" });
LOWaddons/mail/static/tests/chatter/web/chatter.test.js741 name: "John Doe",
167 more matches not shown…
Redundant / Tautological Comments147 hits · 205 pts
SeverityFileLineSnippet
LOWodoo/addons/base/tests/test_views.py1453 # Check if the replacement inside the child view did not mess up the
LOWodoo/addons/base/tests/test_views.py1461 # Check if the replacement of the first worlds did not mess up the
LOWodoo/addons/base/tests/test_views.py1511 # Check if the replacement inside the child view did not mess up the
LOWodoo/addons/base/tests/test_views.py1520 # Check if the child view replacement of added nodes did not mess up
LOWodoo/addons/base/tests/test_views.py1394 # Check if the replacement inside the child view did not mess up the
LOWodoo/addons/base/tests/test_views.py1402 # Check if the replacement of the first worlds did not mess up the
LOWodoo/addons/base/models/ir_mail_server.py716 # Check if it's still possible to put the bounce address as smtp_from
LOWodoo/addons/base/models/ir_ui_view.py473 # Check if we know how to apply inheritances
LOWodoo/orm/registry.py1072 # Check if the model registry must be reloaded
LOWodoo/orm/registry.py1079 # Check if the model caches must be invalidated.
LOWaddons/auth_signup/tests/test_auth_signup.py63 # Check if an email is sent to the new userw
LOWaddons/auth_signup/controllers/main.py50 # Set user to public if they were not signed in by do_signup
LOWaddons/website_event_track/tests/test_website_event.py71 # Check if app_icon is set
LOWaddons/website_event_track/tests/test_website_event.py74 # Check if app_icon is a valid image
LOWaddons/website_event_track/controllers/event_track.py152 # Check if there are any ongoing or upcoming tracks
LOWaddons/stock_picking_batch/models/stock_picking.py199 # Check if auto_batch is enabled for this picking.
LOWaddons/google_calendar/utils/google_event.py194 # Check if ids are the same
LOWaddons/google_calendar/models/google_sync.py180 # Check if it is a recurring event that has been rescheduled.
LOWaddons/l10n_ar/controllers/portal.py61 # Check if the ARCA responsibility is different from Final Consumer or Foreign Customer,
LOW…quisition_sale/tests/test_purchase_requisition_sale.py58 # Check if newly created PO is correctly linked to the base Sale Order
LOWaddons/calendar/tests/test_calendar_tour.py44 self.assertFalse(event) # Check if the event has been correctly deleted
LOWaddons/calendar/tests/test_calendar_tour.py69 self.assertEqual(attendee.state, 'declined') # Check if the event has been correctly declined
LOWaddons/payment_paypal/tests/test_paypal.py119 # Set country to one where state is required
LOWaddons/sms/tests/test_sms_template.py40 # Check if a member of group_user can only read on sms.template
LOWaddons/l10n_sa/models/account_move.py123 # Check if the document is legal in Saudi
LOWaddons/mrp_subcontracting/tests/test_subcontracting.py35 # Check if warehouse routes got RECREATED (instead of reused)
LOWaddons/mrp_subcontracting/tests/test_subcontracting.py48 # Check if warehouse operation types (picking.type) got RECREATED (instead of reused)
LOWaddons/mail/models/mail_message.py1357 # Check if user has access to the record before displaying a notification about it.
LOWaddons/sale_stock/models/stock.py69 # Check if there is already a SO line for this product to get
LOWaddons/sale_stock/models/stock.py265 # Check if there is already a SO line for this product to get
LOWaddons/web/tests/test_reports.py130 # Check if the temporary session has been deleted
LOWaddons/web/tests/test_reports.py134 # Check if temporary files have been deleted
LOWaddons/web/tests/test_res_users_settings.py66 # Check if the setting is correctly created
LOWaddons/web/tests/test_res_users_settings.py75 # Check if the settings are correctly formatted from the getter
LOWaddons/web/tests/test_res_users_settings.py93 # Check if the setting is correctly updated
LOWaddons/web/tests/test_res_users_settings.py102 # Check if the settings are correctly formatted after the update
LOWaddons/l10n_tw_edi_ecpay/models/account_move.py538 # Check if the credit note has exchange difference, we need to add it to the sale amount
LOWaddons/website/tests/test_performance.py337 # Check if website.cookies_bar is active
LOWaddons/website/tests/test_performance.py339 # Check if `view.track` to track visitor or not
LOWaddons/website/tests/test_performance.py372 # Check if `view.track` to track visitor or not
LOWaddons/website/models/website_menu.py309 # Check if the url match a website.page (to set the m2o relation),
LOWaddons/website/models/ir_ui_view.py139 # Set key to avoid copy() to generate an unique key as we want the
LOWaddons/website/models/assets.py61 # Check if the file to save had already been modified
LOWaddons/website/models/html_text_processor.py130 # Check if terms are translated.
LOWaddons/website/controllers/main.py272 # Check if stored version is still valid
LOWaddons/website/controllers/main.py1312 # Check if the file is customized and get bundle/path info
LOWaddons/mrp/tests/test_bom.py2740 # Assign operation to each bom/byproduct line
LOWaddons/mrp/models/mrp_workorder.py606 # Check if this workcenter is better than the previous ones
LOWaddons/mrp/report/mrp_report_bom_structure.py697 # Check if product is already in stock with enough quantity
LOWaddons/mrp/report/mrp_report_bom_structure.py843 # Check if this workcenter is better than the previous ones
LOWaddons/crm/models/crm_lead.py1025 # Set date_open to today if it is an opp
LOWaddons/crm/models/crm_lead.py2747 # Check if tag_ids is in the pls_fields and removed it from the list. The tags will be managed separately.
LOWaddons/payment_stripe/controllers/main.py211 # Check if the timestamp is not too old
LOWaddons/sale_loyalty/tests/test_program_numbers.py52 # Check if we have enough paid product to receive free product in case of a free product that is different from
LOWaddons/base_import/models/base_import.py1276 # Check if the field is in import_field and is a relational (followed by /)
LOWaddons/product/tests/test_pricelist.py153 # Set country to BE -> property defaults to EU pricelist
LOWaddons/product/tests/test_pricelist.py159 # Set country to KI -> property defaults to highest sequence pricelist
LOWaddons/product/tests/test_product_pricelist.py187 # Check if the pricelist is applied at precise datetime
LOWaddons/product/tests/test_product_pricelist.py201 # Check if the price is different when we change the pricelist
LOWaddons/product/models/product_product.py716 # Check if products still exists, in case they've been unlinked by unlinking their template
87 more matches not shown…
Cross-Language Confusion37 hits · 182 pts
SeverityFileLineSnippet
HIGHodoo/http.py1439 _request_stack.push(req)
HIGHodoo/http.py2818 _request_stack.push(request)
HIGHodoo/http.py2548 --> {"jsonrpc": "2.0", "method": "call", "params": {"arg1": "val1" }, "id": null}
HIGHodoo/http.py2550 <-- {"jsonrpc": "2.0", "result": { "res1": "val1" }, "id": null}
HIGHodoo/http.py2554 --> {"jsonrpc": "2.0", "method": "call", "params": {"arg1": "val1" }, "id": null}
HIGHodoo/http.py2556 <-- {"jsonrpc": "2.0", "error": {"code": 1, "message": "End user error message.", "data": {"code": "codestring
HIGHodoo/tools/translate.py1706 ELSE t.value || m."{field_name}"END"""
HIGHodoo/tools/translate.py1909 WHEN t.noupdate IS FALSE THEN t.value || m."{field.name}"
HIGHodoo/addons/base/tests/test_res_users.py654 _request_stack.push(SimpleNamespace(session=session, env=self.env))
HIGHodoo/addons/base/wizard/base_partner_merge.py308 SET %(field)s = source_agg.value || COALESCE(%(table)s.%(field)s, '{}'::jsonb)
HIGHodoo/addons/base/models/res_users.py1536 name varchar not null,
HIGHodoo/addons/base/models/res_users.py1541 key varchar not null,
HIGHodoo/tests/common.py1945 # the undefined remoteobject is literally just {type: undefined}...
HIGHodoo/tests/common.py492 odoo.http._request_stack.push(request)
HIGHodoo/tests/common.py520 inner.push(init.pop_all())
HIGHodoo/orm/models.py3602 jsonb_strip_nulls(%(fallback)s || COALESCE(%(field)s, '{}'::jsonb) || %(value)s),
HIGHodoo/orm/fields.py1235 # here the specified value for a company might be NULL e.g. '{"1": null}'::jsonb
HIGHaddons/im_livechat/models/discuss_channel.py179 "CHECK((channel_type = 'livechat' and livechat_operator_id is not null) or (channel_type != 'livechat'))",
HIGHaddons/l10n_sa_edi/models/account_journal.py681 'l10n_sa_compliance_csid_json': """{"requestID": 1234567890123, "dispositionMessage": "ISSUED", "binarySecur
HIGHaddons/web/tests/test_click_everywhere.py86 self.browser_js("/odoo", "odoo.loader.modules.get('@web/webclient/clickbot/clickbot_loader').startClickEverywher
HIGHaddons/web/tests/test_click_everywhere.py100 self.browser_js("/odoo", "odoo.loader.modules.get('@web/webclient/clickbot/clickbot_loader').startClickEverywher
HIGHaddons/website_slides/models/slide_channel.py485 SET access_token = md5(md5(random()::varchar || id::varchar) || clock_timestamp()::varchar)::uuid::varch
HIGHaddons/website/models/ir_module_module.py551 o_menu_name = SQL('menu.name || %s' if overwrite else '%s || menu.name', update_jsonb)
HIGHaddons/crm/models/crm_lead.py2315 # if stage_id is null, return 0 and bypass computation
HIGHaddons/crm/models/crm_lead.py2315 # if stage_id is null, return 0 and bypass computation
HIGHaddons/crm/models/crm_lead.py2460 probability = CASE WHEN (probability = automated_probability OR probability is null)
HIGHaddons/iot_drivers/tools/upgrade.py212 background_cmd = 'chroot /root_bypass_ramdisks /bin/bash -c "apt-get upgrade -y && apt-get -y autoremove"'
HIGHaddons/bus/websocket.py900 _wsrequest_stack.push(self)
HIGHaddons/http_routing/tests/common.py105 odoo.http._request_stack.push(request)
HIGHaddons/account/models/account_account_tag.py129 SET name = tag.name || jsonb_build_object(%(lang)s, substring(tag.name->>'en_US' FOR 1) || (report_li
HIGHaddons/stock/models/stock_move_line.py602 # adjustment, enforce some rules on the `lot_id` field. If `quantity` is null, we unlink
HIGHaddons/web_tour/tests/test_tours.py122 errors.push(module)
HIGHaddons/web_tour/tests/test_tours.py165 errors.push(module)
HIGHaddons/survey/models/survey_question.py213 "CHECK (is_scored_question != True OR question_type != 'datetime' OR answer_datetime is not null)",
HIGHaddons/survey/models/survey_question.py217 "CHECK (is_scored_question != True OR question_type != 'date' OR answer_date is not null)",
HIGHaddons/rpc/tests/test_xmlrpc.py205 _request_stack.push(fake_req)
HIGHaddons/l10n_it_edi/tools/remove_signature.py73 if verify(loaded_data._pkcs7, null, null, null, out_buffer, flags) != 1:
AI Slop Vocabulary109 hits · 171 pts
SeverityFileLineSnippet
LOWodoo/http.py1020 # the _save_session is going to simply use session.sid to set a new cookie.
MEDIUModoo/tools/mail.py1029 """ Parse contact name and email (given by text) in order to find contact
LOWodoo/tools/misc.py438 deps[item] # just set the default
MEDIUModoo/tools/pdf/__init__.py533 # " The aforementioned EOL marker shall be immediately followed by a % (25h) character followed by at least four
LOW…/addons/test_lint/tests/_odoo_checker_sql_injection.py327 # otherwise just return the original node for checking
MEDIUM…oo/addons/test_assetsbundle/tests/test_assetsbundle.py677 """ Checks that a bundle don't try hard to parse broken xml, and returns a comprehensive
MEDIUM…oo/addons/test_assetsbundle/tests/test_assetsbundle.py689 """ Checks that a bundle with multiple broken xml returns a comprehensive error message.
MEDIUM…oo/addons/test_assetsbundle/tests/test_assetsbundle.py700 """ Checks that a bundle with template without name returns a comprehensive error message.
MEDIUM…oo/addons/test_assetsbundle/tests/test_assetsbundle.py711 """ Checks that a bundle with a file in error (file not found, encoding error, or other) returns a comprehensive
LOWodoo/addons/test_inherits/models.py6# We just create a new model
MEDIUModoo/addons/base/tests/test_tz.py28 # the first one is more robust
MEDIUModoo/addons/base/tests/test_test_suite.py85 # will make it more robust to future changes and eventual mistakes
MEDIUModoo/addons/base/tests/test_http_case.py128 # but this makes the test more clear and robust
MEDIUModoo/addons/base/models/ir_actions_report.py232 """Used in the ir.actions.report form view in order to search naively after the view(s)
LOWodoo/addons/base/models/ir_attachment.py174 # simply add fname to checklist, it will be garbage-collected later
MEDIUModoo/addons/base/models/res_bank.py134 """ To be overridden by subclasses in order to support other account_types.
MEDIUModoo/addons/base/models/ir_qweb.py2641 """ This special 't-call-assets' tag can be used in order to aggregate/minify javascript and css assets"""
LOWodoo/addons/base/models/res_partner.py84 #(e.g fields not present on the model). In that case we just return arch
MEDIUModoo/addons/base/models/ir_actions.py30 """ Proxy of the `_logger` element in order to be used in server actions.
MEDIUModoo/tests/form.py481 """ Validate & extract values, recursively in order to handle o2ms properly.
MEDIUModoo/orm/models.py3755 """ Read from the database in order to fetch ``field`` (:class:`Field`
LOWodoo/orm/fields_properties.py377 # when we create the new record. But if we just set the value without changing
LOWodoo/orm/fields_misc.py123 # do not flush, just return the identifier
MEDIUMaddons/sale/models/sale_order_line.py825 """ Convert the current record to a dictionary in order to use the generic taxes computation method
LOWaddons/l10n_sa_edi/models/account_edi_format.py190 # no signed invoice. In this case, we just return the original content
MEDIUMaddons/stock_delivery/models/delivery_carrier.py95 """ Some delivery carriers require a prefix to be sent in order to use custom
MEDIUMaddons/l10n_ar/tests/test_manual.py80 """ RI partner with many lines in order to prove rounding error, with 4 decimals of precision for the
MEDIUMaddons/l10n_ar/tests/test_manual.py85 """ RI partner with many lines in order to test rounding error, it is required to use a 4 decimal precision
MEDIUMaddons/l10n_ar/tests/test_manual.py90 """ RI partner with many lines in order to test zero amount invoices y rounding error. it is required to
MEDIUMaddons/l10n_ar/models/res_partner.py32 """ This will add some dash to the CUIT number (VAT AR) in order to show in his natural format:
MEDIUMaddons/portal_rating/models/rating_rating.py45 """ Force publisher partner and date if not given in order to have
MEDIUMaddons/l10n_my_edi_pos/tests/test_myinvois_pos.py719 """ Generate a relatively complex use case, and compare it to an XML file in order to ensure correct generation
MEDIUMaddons/l10n_my_edi_pos/tests/test_myinvois_pos.py769 """ Generate a relatively complex use case, and compare it to an XML file in order to ensure correct generation
MEDIUMaddons/sms/models/mail_message.py7 """ Override MailMessage class in order to add a new type: SMS messages.
MEDIUMaddons/mrp_subcontracting/models/stock_move.py20 """ Compute if the action button in order to see moves raw is visible """
MEDIUMaddons/mrp_subcontracting/models/stock_move.py80 """ Open the produce wizard in order to register tracked components for
MEDIUMaddons/mail/models/mail_blacklist.py59 """ Override _search in order to grep search on email field and make it
MEDIUMaddons/mail/models/ir_config_parameter.py20 # prepares data for 'send' in conjunction with auto_commit=True in order
MEDIUMaddons/web/static/tests/legacy/qunit.js414 // Essentially prevents default error logging when the rejection was
MEDIUMaddons/web/static/lib/fullcalendar/core/index.global.js89 var css_248z = ":root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--f
MEDIUMaddons/web/static/lib/fullcalendar/core/index.global.js1165 standardDateProps.timeZone = 'UTC'; // we leverage the only guaranteed timeZone for our UTC markers
MEDIUM…ns/web/static/lib/fullcalendar/daygrid/index.global.js667 // Essentially, once you compute an element's height, never null-out.
MEDIUMaddons/web/static/lib/jquery/jquery.js10942// understands anonymous AMD modules. A named AMD is safest and most robust
LOWaddons/web/controllers/export.py472 # * if we have a normal field (length 1), just add it to the info
MEDIUMaddons/web/controllers/report.py95 """This function is used by 'action_manager_report.js' in order to trigger the download of
LOW…_vendor/webauthn/helpers/validate_certificate_chain.py27 # We have no root certs to chain back to, so just pass on validation
MEDIUMaddons/website/static/tests/builder/images.test.js302 // in practice but the system should be robust to this case as the
MEDIUMaddons/website/static/src/scss/website.edit_mode.scss142 // TODO implement something more robust. This is currently for our only
MEDIUMaddons/website/static/src/scss/website.backend.scss18 // TODO: Find another way to set the height, not robust enough,
MEDIUMaddons/website/static/src/utils/images.js1// Definitely not the right location for this file !!!
MEDIUM…lder/plugins/options/cover_properties_option_plugin.js38 // robust enough.
MEDIUMaddons/mrp/tests/test_order.py1555 """ Checks that, the production is robust against deletion of finished move."""
MEDIUMaddons/mrp/models/stock_rule.py42 """ If 'run' is called on a kit, this override is made in order to call
MEDIUMaddons/mrp/models/mrp_production.py1457 """ returns 'assigned' if enough components are reserved in order to complete
MEDIUMaddons/crm/tests/test_crm_lead_assignment.py314 """ Test assignment on a more high volume oriented test set in order to
MEDIUMaddons/crm/tests/test_performances.py124 """ Test assignment on a more high volume oriented test set in order to
MEDIUM…tic/src/views/forecast_kanban/forecast_kanban_model.js20 // future, modify the original domain instead. It is not robust
MEDIUMaddons/bus/static/tests/mock_websocket.js90 // Disable the interval until those tests are rewritten to be more robust.
LOW…s/product/tests/test_product_attribute_value_config.py368 # CASE: no combination, no variant, just return the only variant
MEDIUMaddons/project_account/models/project_project.py123 """ this method is used in order to overwrite the domain in sale_timesheet module. Since the field 'project_id'
49 more matches not shown…
Verbosity Indicators73 hits · 114 pts
SeverityFileLineSnippet
LOWodoo/addons/base/models/res_users_deletion.py65 # Step 1: Delete User
LOWodoo/addons/base/models/res_users_deletion.py85 # Step 2: Delete Linked Partner
LOWodoo/addons/base/models/res_partner.py1183 The purpose of this function is to build and return an address formatted accordingly to the
LOW…website_sale_slides/tests/test_course_purchase_flow.py42 # Step 2: create a sale_order with the course product
LOW…website_sale_slides/tests/test_course_purchase_flow.py57 # Step 3: check that the customer is now a member of both channel
LOW…website_sale_slides/tests/test_course_purchase_flow.py61 # Step 4: Same test as salesman
LOWaddons/calendar/tests/test_event_recurrence.py752 # Step 1: Use the popover delete wizard to delete the next occurrence of the event.
LOWaddons/calendar/tests/test_event_recurrence.py760 # Step 2: Use another delete wizard to handle the deletion of the next occurrence.
LOWaddons/calendar/tests/test_event_recurrence.py768 # Step 3: Send cancellation notifications and delete the next occurrence.
LOWaddons/calendar/tests/test_event_recurrence.py776 # Step 0: Retrieve the recurring event to be deleted.
LOWaddons/calendar/tests/test_event_recurrence.py779 # Step 1: Use the popover delete wizard to delete all occurrences of the event.
LOWaddons/calendar/tests/test_event_recurrence.py787 # Step 2: Use another delete wizard to handle the deletion of the event recurrence.
LOWaddons/calendar/tests/test_event_recurrence.py795 # Step 3: Send cancellation notifications and delete all recurrences.
LOW…/web/static/tests/webclient/actions/load_state.test.js1627 // Step 1: Navigate to Sale->Customers with explicit menu_id
LOW…/web/static/tests/webclient/actions/load_state.test.js1634 // Step 2: Emulate F5 reload
LOWaddons/web/static/tests/legacy/qunit.js329 * The purpose of this function is to reset the timer nesting level of the execution context
LOWaddons/web/static/lib/owl/owl.js1811 // Step 1: calling all willPatch lifecycle hooks
LOWaddons/web/static/lib/owl/owl.js1825 // Step 2: patching the dom
LOWaddons/web/static/lib/owl/owl.js1828 // Step 4: calling all mounted lifecycle hooks
LOWaddons/web/static/lib/owl/owl.js1837 // Step 5: calling all patched hooks
LOWaddons/web/static/lib/hoot/hoot_utils.js1419 // Step 1: remove "exact" parts of the string query and add them as exact string
LOWaddons/web/static/lib/hoot/hoot_utils.js1431 // Step 2: split remaining string query on white spaces and:
LOWaddons/web/static/src/core/bottom_sheet/bottom_sheet.js110 // Step 1: Take measurements
LOWaddons/web/static/src/core/bottom_sheet/bottom_sheet.js113 // Step 2: Apply Dimensions
LOWaddons/web/static/src/core/bottom_sheet/bottom_sheet.js116 // Step 3: Set initial position
LOWaddons/web/static/src/core/bottom_sheet/bottom_sheet.js119 // Step 4: Setup event handlers after everything has been properly resized and positioned
LOWaddons/web/static/src/core/bottom_sheet/bottom_sheet.js122 // Step 5: Mark as ready
LOW…/static/src/model/relational_model/relational_model.js778 * occurrences to be updated. The purpose of this function is to find and
LOWaddons/web/controllers/pivot.py32 # Step 1: writing col group headers
LOWaddons/web/controllers/pivot.py64 # Step 2: writing measure headers
LOWaddons/web/controllers/pivot.py77 # Step 4: writing data
LOW…ides_survey/tests/test_course_certification_failure.py9 # Step 1: create a simple certification
LOW…ides_survey/tests/test_course_certification_failure.py50 # Step 2: link the certification to a slide of category 'certification'
LOW…ides_survey/tests/test_course_certification_failure.py58 # Step 3: add portal user as member of the channel
LOW…ides_survey/tests/test_course_certification_failure.py68 # Step 4: fill in the created user_input with wrong answers
LOW…ides_survey/tests/test_course_certification_failure.py79 # Step 5: simulate a 'retry'
LOW…ides_survey/tests/test_course_certification_failure.py89 # Step 6: fill in the new user_input with wrong answers again
LOW…ides_survey/tests/test_course_certification_failure.py99 # Step 7: add portal user as member of the channel once again
LOW…ides_survey/tests/test_course_certification_failure.py108 # Step 8: fill in the created user_input with correct answers this time
LOWaddons/privacy_lookup/wizard/privacy_lookup_wizard.py53 # Step 1: Retrieve users/partners liked to email address or name
LOWaddons/privacy_lookup/wizard/privacy_lookup_wizard.py98 # Step 3: Retrieve info on other models
LOWaddons/project/controllers/project_sharing_chatter.py17 So, we need to check if the chatter is for a task and if the res_id is a task
LOWaddons/project/controllers/project_sharing_chatter.py20 If we do not have any token, then we need to check if the portal user is a follower of the project shared.
LOW…_of_sale/static/tests/pos/tours/product_screen_tour.js964 // Step 1: Search and add first variant
LOW…_of_sale/static/tests/pos/tours/product_screen_tour.js974 // Step 2: Search and add product without attributes (used to delay UI update)
LOW…_of_sale/static/tests/pos/tours/product_screen_tour.js983 // Step 3: Search and add second variant of the original product
LOW…ons/point_of_sale/static/src/app/services/pos_store.js1998 // We need to check if a preparation display is configured to avoid unnecessary sync
LOWaddons/l10n_hu_edi/models/res_company.py140 # Step 1: Request a list of all transactions made during the specified time interval.
LOWaddons/l10n_hu_edi/models/res_company.py162 # Step 2: Query unknown transactions in reverse order (latest first) and update invoice states accordingly.
LOWaddons/account/tests/test_account_account.py821 # Step 2: Unmerge the account
LOWaddons/account/wizard/account_merge_wizard.py141 # Step 1: Keep track of the company_ids and codes we should write on the account.
LOWaddons/account/wizard/account_merge_wizard.py157 # Step 2: Check that we have write access to all the accounts and access to all the companies
LOWaddons/account/wizard/account_merge_wizard.py161 # Step 3: Update records in DB.
LOWaddons/account/wizard/account_merge_wizard.py195 # Step 4: Remove merged accounts
LOWaddons/account/wizard/account_merge_wizard.py208 # Step 5: Write company_ids and codes on the account
LOWaddons/account/models/account_account.py1255 # Step 1: Check access rights.
LOWaddons/account/models/account_account.py1258 # Step 2: Create new accounts.
LOWaddons/account/models/account_account.py1275 # Step 3: Update foreign keys in DB.
LOWaddons/account/models/account_account.py1476 # Step 4: Change check_company fields to only keep values compatible with the account's company, and update comp
LOWaddons/account/models/account_account.py1486 # Step 5: Put a log in the chatter of the newly-created accounts
13 more matches not shown…
Slop Phrases31 hits · 45 pts
SeverityFileLineSnippet
LOWodoo/tools/safe_eval.py486# make sure to patch pytz before exposing
LOWodoo/addons/base/tests/test_db_cursor.py145 # make sure to fetch the field from the database
LOWodoo/addons/base/tests/test_install.py33 # make sure to reset the transaction
LOWaddons/l10n_in_edi/models/account_move.py227 # make sure to clear the error before sending again
LOWaddons/l10n_in_edi/models/account_move.py360 # make sure to clear the error before cancelling again
LOWaddons/l10n_in_edi/models/account_move_line.py46 # Please make sure to change, if any change in error codes
LOWaddons/calendar/models/calendar_event.py947 # don't forget to update recurrences if there are some base events in the set to unlink,
LOWaddons/calendar/models/calendar_event.py947 # don't forget to update recurrences if there are some base events in the set to unlink,
LOWaddons/web/static/src/core/utils/patch.js62 * If the intent is to patch a class, don't forget to patch the prototype, unless
LOW…rc/views/fields/iframe_wrapper/iframe_wrapper_field.js40 // If HTML, don't forget to adjust the sanitize options to avoid stripping most of the metadata
LOW…ns/hr_recruitment/views/hr_recruitment_stage_views.xml110 Don't forget to specify the department if your recruitment process
LOW…dons/website_slides/static/src/js/tours/slides_tour.js115 content: markup(_t("Once you're done, don't forget to <b>Publish</b> your course.")),
LOWaddons/google_recaptcha/static/src/scss/recaptcha.scss1// Hide google recaptcha V3 don't forget to add legal
LOWaddons/mass_mailing/data/mailing_data_templates.xml61 <t t-if="mailing.ab_testing_winner_selection == 'manual'">Don't forget to send your preferred version</t>
LOWaddons/mass_mailing/data/mailing_data_templates.xml62 <t t-elif="not mailing.ab_testing_schedule_datetime">Since the date and time for this test has not been scheduled,
LOW…ons/website_forum/views/forum_forum_templates_post.xml148 - no need to answer the same question twice. Also, please <b>don't forget to vote</b>
LOWaddons/pos_stripe/views/pos_payment_method_views.xml12 <button name="action_stripe_key" type="object" icon="oi-arrow-right" string="Don't forget to complet
LOWaddons/microsoft_calendar/utils/microsoft_event.py136 # don't forget to also set the global event ID on the Odoo event to ease
LOWaddons/microsoft_calendar/utils/microsoft_event.py136 # don't forget to also set the global event ID on the Odoo event to ease
LOWaddons/website_event/static/src/js/tours/event_tour.js30 content: markup(_t("Don't forget to click <b>save</b> when you're done.")),
MEDIUMaddons/account/tests/test_account_account.py93 # Test that you can modify the code of an account in another company by writing on `code_mapping_ids`.
MEDIUMaddons/account/tests/test_account_account.py97 # Test that you can modify the code of an account in another company by passing a CREATE value to `code_mapping_
MEDIUMaddons/account/tests/test_account_account.py45 # Test that you can add a company to an account if you add the code at the same time
LOWaddons/account/wizard/account_payment_register.py1159 # Fix the balance but make sure to peek the liquidity and counterpart lines first.
LOWaddons/account/models/account_tax.py2529 Don't forget to call '_add_tax_details_in_base_lines' and '_round_base_lines_tax_details' before calling this me
LOWaddons/account/models/account_tax.py2718 Don't forget to call '_add_tax_details_in_base_lines' and '_round_base_lines_tax_details' before calling this me
LOWaddons/account/models/account_tax.py3052 Don't forget to call '_add_tax_details_in_base_lines', '_round_base_lines_tax_details' and
LOWaddons/stock/models/stock_picking.py1125 # make sure to write `schedule_date` *after* the `stock.move` creation in
LOWaddons/sale_purchase/models/product_template.py13 help="If ticked, each time you sell this product through a SO, a RfQ is automatically created to buy the product
MEDIUMaddons/survey/models/survey_survey.py154 help="This code will be used by your attendees to reach your session. Feel free to customize it however you like
LOWaddons/website_sale/models/product_template.py526 # make sure to fetch the right product for the given combination
Cross-Language Confusion (JS/TS)3 hits · 18 pts
SeverityFileLineSnippet
HIGH…/static/src/webclient/actions/reports/report_action.js46 print() {
HIGHaddons/web/static/src/core/utils/nested_sortable.js22 * to verify if a drop location is allowed. return True by default
HIGHaddons/api_doc/static/src/utils/doc_code_gen.js92print(data)
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippet
HIGH…oud_storage_google/utils/cloud_storage_google_utils.py126Generate a V4 signed URL to provide query-string auth'n to a resource. This function is a simplified version of the
HIGH…/webauthn/registration/verify_registration_response.py77Verify an authenticator's response to navigator.credentials.create() Args: - `credential`: The value return
HIGH…authn/authentication/verify_authentication_response.py56Verify a response from navigator.credentials.get() Args: - `credential`: The value returned from `navigator
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippet
HIGHaddons/api_doc/static/src/utils/doc_code_gen.js38 const apiKey = "YOUR_API_KEY";
HIGHaddons/api_doc/static/src/utils/doc_code_gen.js64 --oauth2-bearer YOUR_API_KEY \\
HIGHaddons/api_doc/static/src/utils/doc_code_gen.js79api_key = "YOUR_API_KEY"
Overly Generic Function Names5 hits · 4 pts
SeverityFileLineSnippet
LOWodoo/tools/misc.py752 def do_stuff():
LOWodoo/addons/test_convert/tests/test_convert.py80 def test_function(self):
LOWaddons/web/static/lib/jquery/jquery.js4469function getData( data ) {
LOWaddons/html_editor/static/lib/cropperjs/cropper.js478 function getData(element, name) {
LOWaddons/html_editor/static/lib/cropperjs/cropper.js2732 getData: function getData() {