Adjust support for Async import in odoo17
Describe the bug
To Reproduce Actual behavior When attempting to do an import, the checkbox "import in the background" is not present in the UI
Expected behavior
- "import in the background" checkbox should be visible
- Using import in the background allows user to exit the current page while import is ongoing.
- prepare 1k lines of registrants in a csv then use import in the background during upload
Screenshots
Additional context This ticket was previously logged in the link below from a repository that has been archived: https://github.com/OpenSPP/openspp-acf/issues/35
https://github.com/OpenSPP/openspp-modules/pull/518 here's the PR for this which is already Merged and Deployed.
You might need to install or upgrade spp_import_match module.
Notes
There's a change on the behavior of this, it will automatically set itself to async if the record being imported is more than 100. There's a major changes in odoo import so it will take time to add the checkbox. So I made it automatically for now.
Issue is still present. See video in the link: https://newlogic.slack.com/archives/C05FF1V3V0B/p1725271755181609
Findings: Issue is still present in SP-MIS
Steps:
- Install spp_import_match module.
- Go to Registry >> Groups >> Import records
- Import CSV with 1k registrants
- See issue:
cc: @Markpenalosa @emjay0921
I think the Job Queue is not being initialized on runboat so we might need to restart Odoo when Job Queue is installed. So that @jannahadlaon can continue the test.
cc: @kneckinator
Findings: Returned to dev
Connected to: https://github.com/OpenSPP/openspp-modules/issues/622
@jannahadlaon, can you please retest this on spmis qa and see if the issue is solved?
Findings: QA PASSED
Steps:
- Install spp_import_match module.
- Install Starter for SP-MIS
- Go to Registry >> Groups >> Import records
- Import CSV with 1k registrants - verify that import is successful and data is correct
Video: TEST-534