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

[14.0][FIX] web_advanced_search: relational widget on sale.report #2154

Closed
wants to merge 1 commit into from

Conversation

ivantodorovich
Copy link
Contributor

@ivantodorovich ivantodorovich commented Feb 24, 2022

Steps to reproduce:

  1. Install Sales app
  2. Go to Sales > Reporting > Sales
  3. Add Custom Filter > Product > Is equal to

Without this fix an error is raised:

relational.js:39 Uncaught (in promise)
TypeError: Cannot read properties of undefined (reading 'endsWith')
    at Class.init (relational.js:39:28)

This is a backport of a refactor made in Migration to 15.0

The code is a bit simpler an less hacky now, respecting widgets hierarchy and responsibilities.

Steps to reproduce:

1. Install Sales app
2. Go to Sales > Reporting > Sales
3. Add Custom Filter > Product > Is equal to

Without this fix an error is raised:

relational.js:39 Uncaught (in promise)
TypeError: Cannot read properties of undefined (reading 'endsWith')
    at Class.init (relational.js:39:28)

---

This is a backport of a refactor made in Migration to 15.0
OCA#2153

The code is a bit simpler an less hacky now, respecting widgets
hierarchy and responsibilities.
@ivantodorovich
Copy link
Contributor Author

@flachica @yajo could you have a look at this one, too? 🙏🏻

Copy link
Member

@yajo yajo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not against the patch, but I tested the STR in main branch and I didn't get the error. Did you miss something there? 🤔

@ivantodorovich
Copy link
Contributor Author

I can't reproduce it neither now.. 😮
Honestly I don't know what happened 😅 I remember reproducing it on runboat before creating this PR

@yajo
Copy link
Member

yajo commented Mar 14, 2022

So, do you think this PR is still worth it?

@ivantodorovich
Copy link
Contributor Author

Can't reproduce anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants