Adds a dialog mirroring the Account selection UX for the receipt_document (purchase_receipts) and vendor_invoice (vendor_invoices) fields. Intercepts the standard Advanced Search (LinkSelector) for these fields with a fullscreen dialog featuring a Supplier Group tree on the left, resizable panels, search, custom filters bar, sortable table and pagination. Backend adds get_documents_for_selection (PI/PR/SE/SR with the same filters ERPNext applies in set_query), get_vendor_invoices_for_selection (replicates erpnext.stock...get_vendor_invoice_query — unclaimed_amount > 0, no stock items, etc.), and get_supplier_groups_tree. |
||
|---|---|---|
| selections | ||
| .editorconfig | ||
| .eslintrc | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| CLAUDE.md | ||
| README.md | ||
| Screenshot_20260218_155218.png | ||
| Screenshot_20260218_160142.png | ||
| Screenshot_20260218_161151.png | ||
| Screenshot_20260218_161531.png | ||
| Screenshot_20260218_162613.png | ||
| Screenshot_20260218_171933.png | ||
| license.txt | ||
| pyproject.toml | ||
README.md
Selections
App for replacing add multiple button
Installation
You can install this app using the bench CLI:
cd $PATH_TO_YOUR_BENCH
bench get-app $URL_OF_THIS_REPO --branch main
bench install-app selections
Contributing
This app uses pre-commit for code formatting and linting. Please install pre-commit and enable it for this repository:
cd apps/selections
pre-commit install
Pre-commit is configured to use the following tools for checking and formatting your code:
- ruff
- eslint
- prettier
- pyupgrade
License
unlicense