mrp_advanced_operations: Progressbar is wrong

Bug #1067290 reported by Daniel Stenlöv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Avanzosc developments
Fix Released
Undecided
Daniel Stenlöv

Bug Description

The progressbar does give a faulty value.

If you have more then 1 compomponent that gets produced it will show the progress as 100% for each finished product. So if you produce for example 4 products in one operation it will show 400%.

There is a secondary problem with the progress and that is if you cancel half of the productions it will still show 400%. It should however show 50% since half of the production is done.

Tags: mrp-6.1

Related branches

summary: - [mrp_advanced_operations] Progressbar is wrong
+ mrp_advanced_operations: Progressbar is wrong
tags: added: mrp-6.1
Revision history for this message
Daniel Stenlöv (daniel-stenlov-xclude) wrote :

The error seems to be because of two things. First the production number seems to be wrong. The total production produced are based on the final product, not final product + the bi product. So the totalt number of products to be produced should be the total quantity of the final product and the bi products.

The secondary error seems to be that it calculated the product to be finished even if the product is cancelled. This could be fixed with an easy check if the product is in done state like this:

---------- CUT ----------

                if ((finish_move.product_id.id == finish_move.operation_id.product_id.id) or (finish_move.product_id.id == real_operation.product.id) and (finish_move.state == 'done')):
                    qty += finish_move.product_qty

---------- CUT ----------

Revision history for this message
Daniel Stenlöv (daniel-stenlov-xclude) wrote :

Partly fixed in lp:~xclude/avanzosc/mrp-6.1 revision 4.

Changed in avanzosc:
status: New → Fix Released
assignee: nobody → Daniel Stenlöv (XCLUDE) (daniel-stenlov-xclude)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.