Merge lp:~openerp-dev/openobject-addons/6.1-opw-587363-ado into lp:openobject-addons/6.1

Proposed by Amit Dodiya (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-587363-ado
Merge into: lp:openobject-addons/6.1
Diff against target: 21 lines (+2/-2)
1 file modified
sale/sale.py (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-587363-ado
Reviewer Review Type Date Requested Status
Xavier ALT Pending
Naresh(OpenERP) Pending
Review via email: mp+153063@code.launchpad.net

Description of the change

Hello,

[FIX] the delivery order should take the confirmation date of SO not the creation date in order date and expected date

Steps:
1). Install sale and stock module
2). Now create sale order of date before 1 month(1st Feb.2013)
3). Confirm that sale order on today with current date
Now check the delivery order the "Order Date" and "Extected Date" is calculated based on Creation date of Sale order which is 1 month ago, the delivery date is passed because of sale order is created on Feb.2013.

Regards,
Amit

To post a comment you must log in.

Unmerged revisions

7184. By Amit Dodiya (OpenERP)

[FIX] the delivery order should take the confirmation date of SO not the creation date in order date and expected date

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'sale/sale.py'
--- sale/sale.py 2012-10-09 12:16:14 +0000
+++ sale/sale.py 2013-03-13 07:00:29 +0000
@@ -756,7 +756,7 @@
756 return {756 return {
757 'name': pick_name,757 'name': pick_name,
758 'origin': order.name,758 'origin': order.name,
759 'date': order.date_order,759 'date': order.date_confirm,
760 'type': 'out',760 'type': 'out',
761 'state': 'auto',761 'state': 'auto',
762 'move_type': order.picking_policy,762 'move_type': order.picking_policy,
@@ -822,7 +822,7 @@
822 if line.state == 'done':822 if line.state == 'done':
823 continue823 continue
824824
825 date_planned = self._get_date_planned(cr, uid, order, line, order.date_order, context=context)825 date_planned = self._get_date_planned(cr, uid, order, line, order.date_confirm, context=context)
826826
827 if line.product_id:827 if line.product_id:
828 if line.product_id.product_tmpl_id.type in ('product', 'consu'):828 if line.product_id.product_tmpl_id.type in ('product', 'consu'):