Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3238 Lượt xem

 I have used Report MRP BOM Matrix Module with Odoo 11.
https://github.com/OCA/manufacture-reporting/tree/11.0/mrp_bom_matrix_report

It can generate such a matrix BOM with '1' for product used in BOM.
But I would like it to show the actual product quantity used in BOM instead of '1'.
https://1drv.ms/u/s!AmVzh-zf2E2Hhk5X4PK5gAY4K2CT
https://1drv.ms/u/s!AmVzh-zf2E2Hhk23sK8dXzHSVwQE

I believe that I need to modify "count_parent_usage" field in the following model to show product quantity.
https://github.com/OCA/manufacture-reporting/blob/11.0/mrp_bom_matrix_report/models/mrp_bom_matrix_report.py

I try to modify it, but without success. The SQL query is very confusing for me.
Can anyone help me?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 1 25
420
1
thg 1 20
3989
0
thg 11 18
2525
0
thg 2 16
3293
1
thg 8 15
4109