← Back to team overview

avanzosc team mailing list archive

[Bug 1067290] Re: mrp_advanced_operations: Progressbar is wrong

 

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 ----------

-- 
You received this bug notification because you are a member of Avanzosc
Developers, which is subscribed to Avanzosc developments.
https://bugs.launchpad.net/bugs/1067290

Title:
  mrp_advanced_operations: Progressbar is wrong

Status in Avanzosc OpenERP modules:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/avanzosc/+bug/1067290/+subscriptions


References