c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #32344
[Bug 850781] Re: stock moves order by date_expected problem
Hello Paulius Sladkevičius,
This problem has been solved in latest trunk addons.
You'll always get the stock moves according to the sequence of sale order lines as per the following line of code
on sale/sale.py : line #670,671
date_planned = datetime.strptime(order.date_order, '%Y-%m-%d') + relativedelta(days=line.delay or 0.0)
date_planned = (date_planned - timedelta(days=company.security_lead)).strftime('%Y-%m-%d %H:%M:%S')
I request you to update your code and check.
Hope this helps. And for now we're closing this issue.
Thanks,
Ujjvala
** Changed in: openobject-addons
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/850781
Title:
stock moves order by date_expected problem
Status in OpenERP Addons (modules):
Fix Released
Bug description:
Stock moves are order by "date_expected desc, id". When I create sale
order with many lines it sometimes takes more then 2 sec to confirm
and together create picking order with stock moves. So in the end I
get stock picking with moves where data_expected are different by 1
sec., so in the end we have different picking lines order if we
compare with sale order lines.
So I think to assign now() value for date_expected is not correct,
same is mentioned in the bug #371262.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/850781/+subscriptions
References