-
Notifications
You must be signed in to change notification settings - Fork 7.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
After a "Go Back" in browser : Item Not Showing in Quick Entry of Batch Creation from Batch No. Field in Stock Entry Detail #35841
Comments
@s-aga-r When I open this issue you'r PR that's I've check was already merge, I git it a try with frappe v14.27.12 and the bug is still here. I already try to find where it come from, as this bug occurs at least since version-13. but when I find it can be related to awesomplete, I can't find more relevant information I can't re-open the issue could you do it ? |
@FHenry If that's the case then this should also be happening with other doctypes. Could you try with other doctypes? |
@s-aga-r you in mind other just frappe doctype (or in ERPNext,I don't knowotherDoctype exemple that work like that,that's can explain this bug is unknown) another that have this feature? A quick entry with a link on an element of the source doctype? |
@s-aga-r I've made a sample app with simple feature like so Item Batch stuff And here it work even with the "Previous page" browser. So I have to come from other part specifics of Batch Doctype of Stock entry Doctype I continue to dig |
The fact is the "setup"(
is executed and so is not run 2023-06-29.13-19-26.mp4 |
@FHenry sending PR? |
@s-aga-r I would like but I don't understand why setup JS is not launched the second time... If you find I'm curious |
@FHenry Edit: |
…f Batch Creation from Batch No. Field in Stock Entry Detail frappe#35841
@s-aga-r Thank's for the hints. I've been able to apply your suggestion and it works. Edit : |
FW => FrameWork => Frappe Framework All the set queries are written in setup, what about others?
|
Because others set_query do not make a get_route_options_for_new_doc |
Other place in ERPNext where get_route_options_for_new_doc is called is in onload() event, so I think it was the only here where this bug can occurs (as I see read in the documentation onload() is executed each time not like setup()) |
@FHenry then let's move all the ex. Asset Repair, Job Card, Transaction js etc. |
For #37092 (version-14-hotfix) Asset Repair ? Are you on branch version-14 ? No For #37096 (develop) |
I've check and it's ok |
Information about bug
Create an Item with "Has Batch No"
Create a stock entry
click to create a Batch number, the first time the item is correctly fill.
Go back with your browser arrow to go on item page
retry , this time the Item field in quick Entry create batch is empty
2023-06-22.11-14-08.mp4
Module
stock
Version
Frappe and ERPNext version 13 and version 14
Installation method
None
Relevant log output / Stack trace / Full Error Message.
No response
The text was updated successfully, but these errors were encountered: