← Back to team overview

openerp-india team mailing list archive

[Bug 938359] Re: [6.1] Stock action_consume function

 

*** This bug is a duplicate of bug 985619 ***
    https://bugs.launchpad.net/bugs/985619

** This bug has been marked a duplicate of bug 985619
   mrp.production consume&produce gives moves with quantity 0

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/938359

Title:
  [6.1] Stock action_consume function

Status in OpenERP Addons (modules):
  New

Bug description:
  There is an annoying bug in this function, but also I think it is
  written wrong.  I don't know if correcting it will fix the bug but it
  should be fixed anyway.

  Basically quantity is a float field, however all the defaults in this
  function create ints.  What I am finding is that whenever a move is
  created I am getting an extra move created for 0.000 which I assume is
  rounding and float comparison.  The old roundup argument which would
  be a duplicate - so I am not reporting that particular bug again still
  unresolved after over a year.  But rather I forgot about that bug and
  was looking at the function and it didn't quite seem right.

  This purely relates to the action_consume function - just look at and
  you will see.  All zero values declared as ints not floats, despite
  all quantity fields I can think of in OpenERP being floats.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/938359/+subscriptions


References