934db57fdd
- `get_valuation_rate`: if no bins are found return 0, SLEs do not exist either - `get_valuation_rate`: Compute average valuation rate via query - `get_rm_rate_map`: set order_by as None to avoid creating sort index (modified) each time query runs (seen in process list) - BOM Update Batch: add status field and hide `boms_updated` so that users can see progress without loading all updated boms (too much data) - BOM Update Batch: set batch row status to completed after job runs - BOM Update Log: remove `parent_boms` field (just pass parent boms to processing function) & remove Paused state (not used) - Move job to long queue to avoid choking default queue - `update_cost_in_boms`: use `get_doc` as each BOM is accessed only once. Use `for_update` to lock BOM row - Commit after every 100 BOMs |
||
---|---|---|
.. | ||
blanket_order | ||
blanket_order_item | ||
bom | ||
bom_explosion_item | ||
bom_item | ||
bom_operation | ||
bom_scrap_item | ||
bom_update_batch | ||
bom_update_log | ||
bom_update_tool | ||
bom_website_item | ||
bom_website_operation | ||
downtime_entry | ||
job_card | ||
job_card_item | ||
job_card_operation | ||
job_card_scrap_item | ||
job_card_time_log | ||
manufacturing_settings | ||
material_request_plan_item | ||
operation | ||
production_plan | ||
production_plan_item | ||
production_plan_item_reference | ||
production_plan_material_request | ||
production_plan_material_request_warehouse | ||
production_plan_sales_order | ||
production_plan_sub_assembly_item | ||
routing | ||
sub_operation | ||
work_order | ||
work_order_item | ||
work_order_operation | ||
workstation | ||
workstation_working_hour | ||
__init__.py |