-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[9.0] [ADD] New web_domain_field addon #567
Conversation
ping @adrienpeiffer |
3b43896
to
64db070
Compare
So great, why don't you push it into OCB/web as it could be naturally included in everything? |
@lmignon I'm facing some issues with this PR, the domain using |
@zakiuu What's your problem? Do you try to put the field name directly into the domain put on an other field definition into the python code? Indeed this use case is not tested. |
@lmignon Nope, If I take for example this domain from |
@zakiuu It's fixed |
@lmignon thanks, I'll test it |
@lmignon works great thanks |
@lmignon I got another bug, it occurs when clicking on |
64221f9
to
45ce0b0
Compare
@zakiuu it's fixed with the override of |
Hi @lmignon, Thanks for your module. My example:
If the domain is defined on the same it's works. But for performance reasons I need to compute the domain on parent. I ported and tested your module on V10 local. I don't know if this is why. I didn't change anything except the manifest.py Thank you PS: parent.something worked before Odoo changes with [0][2] domains |
Hi @lmignon Uncaught TypeError: CreateListFromArrayLike called on non-object But if you instead just wait a few seconds after click in "Add a Item" to select the product the domain works, it seems the javascript is faster than calculate domain field and by this reason return error. I don't have enough knowledge about JavaScript, but maybe is need in some way put the black screen "Loading" while the domain field is calculate to avoid users click on the field and receive this error. |
If someone pass through the same problem as I described above there is a workaround ( this is not a solution ) :
This is ugly code but works, thanks to @rvalyi for help me on this problem, we didn't have enough time to make a better solution. |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
see readme https://github.com/acsone/web/blob/64db0709231a8203436926f535b085fd4246bcd5/web_domain_field/README.rst