credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #04586
[Bug 921866] Re: Scheduler created PO's affects virtual stock
Hello Kyle,
Thanks for your nice explanation here.
As per basic scenario (without running scheduler) we have used following
formula for virtual stock and real stock.
Real Stock :-Incoming stock move (which is on done state)-Outgoing stock move(which is on done state)
Virtual stock :- Incoming stock move (which is on draft and waiting state) - Outgoing stock move(which is on draft and waiting state) + real stock
Now comes up to your point. Yes, you are right currently the PO's qty are calculated on virtual stock because If we don't calculated in it and then run the scheduler again and again then it will create a Purchase order more times which doesn't make sense;-)
Another point of view, If my product is manufacturing product (Supply method-> produce) which have component(procure method: make to order, supply method: buy) and I creates a Manufacturing Order for this product. Now I runs the scheduler then it will creates a PO for the component. So for this also component 's product comes on virtual stock and my production order goes into "ready to produce" state.
So this is an intensional behavior of OpenERP that when the purchase
order created form the scheduler the it will be count in virtual stock.
I appreciate your efforts on this issue also about your solution which
is described in last paragraph of your comment. Your suggested solution
is very nice for this.So we can consider this as a "Wishlist".
You have suggested that we have cached values of the previous Purchase
Orders that were generated form the scheduler and Each time the
scheduler runs before it creates a new purchase order it should check
against already created purchase orders. Then create a new one. But it
becomes too sticky to check it and there is also lots of possibility
that we have cancel that purchase order or we have changed the qty of PO
then we have confirm it.
That's why currently I am considering this as an "Opinion" because
before Implementing/Confirming this we need a more discussion on this.
After a discussion over here we will decide the better solution for this
and then we will set this as a "Wishlist" or any importance.
Correct me If I am wrong.
@Stock Accounting experts: Would you please share your views on this!
Thanks and more suggestions are welcomed!
** Changed in: openobject-addons
Status: Incomplete => Opinion
--
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/921866
Title:
Scheduler created PO's affects virtual stock
Status in OpenERP Addons (modules):
Opinion
Bug description:
I have min/max rules setup. When the scheduler runs nightly it auto-
generates purchase orders. It generates them correctly. They are in
quotation state.
The problem is that they affect virtual stock. If I have 5 parts left
in stock. A minimum rule of 10. It creates a purchase order for 5 in
quotation. Now it says I have 10 in virtual stock, but this is not
right. It should never ever effect virtual stock unless it is
confirmed. A quotation has no value.
Does it do this behavior intentionally to avoid creating the same
purchase order again the next night? If so thats a bad work around.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/921866/+subscriptions
References