← Back to team overview

openerp-community-reviewer team mailing list archive

Re: [Bug 915568] Re: Wrong dates used when confirming stock inventory

 

I am still not comfortable with the idea.
We should be able to post an inventory at the date it has been performed 
(inventory date) and calculated based on this date
Eric CAUDAL

Eric Caudal
/CEO/
--
*Elico Corporation, Shanghai branch
/OpenERP Premium Certified Training Partner/  *
Cell: + 86 186 2136 1670
Office: + 86 21 6211 8017/27/37
Skype: elico.corp
eric.caudal@xxxxxxxxxxxxxx  <mailto:eric.caudal@xxxxxxxxxxxxxx>
http://www.elico-corp.com

Elico Corp
On 03/11/2014 06:31 PM, Lionel Sausin - Numérigraphe wrote:
> I've re-examined the code in v7:
> - the quantities are computed for the date specified on the inventory ("to_date=inv.date")
> - the moves are written at the date the inventory is confirmed ("now").
> So the behavior is indeed not consistent and buggy, so I'm confirming again.
> According to Quentin's comments, I think the consistent solution for the standard would be to :
> - compute the quantities up to now
> - keep the stock moves up dated "now".
> Quentin do you agree please ?
>
> This would of course impose real-time inventory management in OpenERP,
> which is impossible for some businesses like Hugh Turner emphasized.
>
> ** Changed in: ocb-addons
>         Status: New => In Progress
>
> ** Changed in: openobject-addons
>         Status: Opinion => Confirmed
>


** Attachment added: "elico_signature.jpg"
   https://bugs.launchpad.net/bugs/915568/+attachment/4018030/+files/elico_signature.jpg

-- 
You received this bug notification because you are a member of Stock and
Logistic Core Editors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/915568

Title:
  Wrong dates used when confirming stock inventory

Status in OpenERP Community Backports (Addons):
  Confirmed
Status in New OpenERP WMS:
  Won't Fix
Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  [ Problem ]
  action_confirm method is not taking in account "date" from stock.inventory object, and update qtys in the moment of confirmation.
  The inventory date is taken into account when querying the stock to compute the inventory difference but the stock moves are created at the wrong date, making the stock and virtual stock wrong at the date of the inventory.

  Users expect that the inventory date should say _when_ the inventory
  was taken - in this way the amount to correct should effective before
  this date.

  Attached videos gives better explanation, and document with kardex
  expected.

  [ Impact ] the available quantity and virtual stock are wrong near the
  date of the inventory.

  [ Possible fixes ]
  - The preferred fix would be to write the stock moves at the date of the inventory.
  - A less-than-ideal fix would be to not take the inventory date is taken into account when querying the stock to compute the inventory difference. For the moment is the way v8 is being developed.

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


References