[IMP] ddmrp_report_part_flow_index: store flow index on buffer + add Actual Flow Index report#24
Open
dnplkndll wants to merge 42 commits into
Open
Conversation
Currently translated at 100.0% (26 of 26 strings) Translation: ddmrp-16.0/ddmrp-16.0-ddmrp_report_part_flow_index Translate-URL: https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_report_part_flow_index/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: ddmrp-16.0/ddmrp-16.0-ddmrp_report_part_flow_index Translate-URL: https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_report_part_flow_index/
Currently translated at 100.0% (31 of 31 strings) Translation: ddmrp-16.0/ddmrp-16.0-ddmrp_report_part_flow_index Translate-URL: https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_report_part_flow_index/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: ddmrp-16.0/ddmrp-16.0-ddmrp_report_part_flow_index Translate-URL: https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_report_part_flow_index/
Currently translated at 100.0% (32 of 32 strings) Translation: ddmrp-16.0/ddmrp-16.0-ddmrp_report_part_flow_index Translate-URL: https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_report_part_flow_index/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: ddmrp-16.0/ddmrp-16.0-ddmrp_report_part_flow_index Translate-URL: https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_report_part_flow_index/
Currently translated at 100.0% (31 of 31 strings) Translation: ddmrp-16.0/ddmrp-16.0-ddmrp_report_part_flow_index Translate-URL: https://translation.odoo-community.org/projects/ddmrp-16-0/ddmrp-16-0-ddmrp_report_part_flow_index/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: ddmrp-17.0/ddmrp-17.0-ddmrp_report_part_flow_index Translate-URL: https://translation.odoo-community.org/projects/ddmrp-17-0/ddmrp-17-0-ddmrp_report_part_flow_index/
Currently translated at 100.0% (30 of 30 strings) Translation: ddmrp-17.0/ddmrp-17.0-ddmrp_report_part_flow_index Translate-URL: https://translation.odoo-community.org/projects/ddmrp-17-0/ddmrp-17-0-ddmrp_report_part_flow_index/it/
…n the report Also, take the ocassion to make buffer_id clickable in tree view.
Signed-off-by: Don Kendall <dkendall@ledoweb.com>
Signed-off-by: Don Kendall <dkendall@ledoweb.com>
6f0364f to
387c14b
Compare
…al report - order_frequency / order_frequency_group / flow_index_group_id are now stored computed fields on stock.buffer (reactive on green_zone_qty / adu), replacing the cron_actions hook + _read_group + flush_model recompute path. - Drop the report.ddmrp.part.plan.flow.index SQL view; the Plan report is now a pivot / graph / list on stock.buffer. - Add the Parts Actual Flow Index report: actual_order_* fields computed at refresh from completed replenishments over the past horizon, reusing the ddmrp.flow.index.group ranges. Closes the ROADMAP item. - Add a Flow Index notebook page (Planned / Actual) on the buffer form and show the group as a badge on the form and the report lists.
387c14b to
f936e0b
Compare
0d3695b to
2efa264
Compare
eb094dc to
8376350
Compare
8376350 to
6e0a481
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Simplification + roadmap follow-up on top of the 19.0 MIG (OCA#618). Two
[IMP]commits; base is the MIG branch, so the diff is the improvement only.What changed
order_frequency,order_frequency_groupandflow_index_group_idare now stored computed fields onstock.buffer(order_frequency/order_frequency_groupdepend ongreen_zone_qty/adu;flow_index_group_idonorder_frequency_group). Replaces thecron_actionshook +_read_group+flush_modelrecompute path.report.ddmrp.part.plan.flow.indexSQL view. The Plan report is now a list/pivot/graph onstock.buffer.actual_order_count/actual_order_frequency/actual_order_frequency_group/actual_flow_index_group_idare computed at buffer refresh from completed replenishment moves over the past horizon, reusing theddmrp.flow.index.groupranges.Definitions
order_frequency_grouprounding is half-away-from-zero, matching the prior SQLround().Tests
Local 19.0 install +
--test-enable: 0 failed / 0 error of 5 tests (planned recompute via cron, planned recompute on direct input write, actual flow from receipts, no-history,_matchopen-ended ranges + gap).Builds on OCA#618.
Screenshots
Buffer form — Flow Index page (Planned / Actual; group as badge). SB/00001: planned Medium Flow, actual Low Flow.
Parts Plan Flow Index — list, default group-by Flow Index Group.
Parts Actual Flow Index — same views, default group-by Actual Flow Index Group (no completed replenishments → None).
Pivot — planned and actual order-frequency-group measures per flow group.