Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] website: fix traceback on switching type of many2one form field #166108

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

divy-odoo
Copy link
Contributor

Steps to reproduce:

  1. Drop the website_form snippet.
  2. Select name field & change with the many2one field having no record.
  3. Switch the type: "dropdown list" => "radio"

--> It will throw a traceback :

This commit, fix the uncaught promise by adding validation before using variable.

task-3932086

@robodoo
Copy link
Contributor

robodoo commented May 20, 2024

@C3POdoo C3POdoo added the RD research & development, internal work label May 20, 2024
@divy-odoo divy-odoo force-pushed the master-fix-traceback-on-field-type-switching-with-no-option-divy branch from 0d18ce4 to 7e91f26 Compare May 21, 2024 12:37
Steps to reproduce:

1. Drop the website_form snippet.
2. Select name field & change with the many2one field having no record.
3. Switch the type: "dropdown list" => "radio"

--> It will throw a traceback :

This commit, fix the uncaught promise by adding validation before using
variable.

task-3932086
@divy-odoo divy-odoo force-pushed the master-fix-traceback-on-field-type-switching-with-no-option-divy branch from 7e91f26 to 8e49f6e Compare May 22, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants