bf8743713d
- `remove_user_permission` in `test_warehouse_user` calls delete_doc that enqueues dynamic link deletion - Execution of background job eventually commits - While in the test suite it runs sequentially in the same thread and commits whatever was done until then - Which is why the rollback in `tearDownClass` is quite useless here - This premature commit causes many illegal transactions caught by `assertRaises` to be committed in the db - This creates faulty/dirty ledgers and breaks reports, as outiside the test suite this shouldn't/wouldn't happen - Rollback after each test, and for `test_warehouse_user` in particular, manually cancel transaction |
||
---|---|---|
.. | ||
dashboard | ||
dashboard_chart | ||
dashboard_chart_source | ||
doctype | ||
form_tour | ||
module_onboarding/stock | ||
number_card | ||
onboarding_step | ||
page | ||
print_format | ||
report | ||
spec | ||
stock_dashboard/stock | ||
tests | ||
workspace/stock | ||
__init__.py | ||
get_item_details.py | ||
landed_taxes_and_charges_common.js | ||
README.md | ||
reorder_item.py | ||
stock_balance.py | ||
stock_ledger.py | ||
utils.py | ||
valuation.py |
Inventory management module.