openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #04183
[Bug 909666] Re: Purchase Expected Date
I think that its wrong logic in "purchase.py". It calculate scheduled date in PO as follow:
Scheduled date (PO) = Scheduled date (Procurement) - Purchase Lead Time (Company Configuration) - Delivery Lead Time (Product Supplier)
But auto Procurement already take into account Delivery Lead Time (Product Supplier) and we have total (for Sales Order or Minimum Stock Rule):
Scheduled date (PO) = TODAY + Delivery Lead Time (Product Supplier) - Purchase Lead Time (Company Configuration) - Delivery Lead Time (Product Supplier) = TODAY - Purchase Lead Time (Company Configuration)
!!! Past due!!!
And for manual Procurement:
Scheduled date (PO) = TODAY (default scheduled date in manual procurement) - Purchase Lead Time (Company Configuration)
- Delivery Lead Time (Product Supplier)
!!! Past due!!!
I think formula must be:
Scheduled date (PO) = Scheduled date (Procurement) + Purchase Lead Time (Company Configuration) + Delivery Lead Time (Product Supplier)
and no take into account Delivery Lead Time (Product Supplier) in auto
Procurement!
--
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/909666
Title:
Purchase Expected Date
Status in OpenERP Addons (modules):
New
Bug description:
When make manual Purchase and add Product to PO then expected date (for full PO) and scheduled date (for PO line) calculate correct: scheduled date = current date plus Delivery Lead Time (from Product); expected date = min(scheduled dates).
But when make automate Purchase through Procurement (Sales Order) then in new PO scheduled dates (for PO lines) calculate wrong: scheduled date = current date plus 1 day. And auto Purchase from manual Procurement: scheduled date = current date minus 7 day (here like Delivery Lead Time = 7).
Product - Stockable, MTO, Buy.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/909666/+subscriptions
References