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
1=== modified file 'sale/sale.py'
2--- sale/sale.py 2012-10-09 12:16:14 +0000
3+++ sale/sale.py 2013-03-13 07:00:29 +0000
4@@ -756,7 +756,7 @@
5 return {
6 'name': pick_name,
7 'origin': order.name,
8- 'date': order.date_order,
9+ 'date': order.date_confirm,
10 'type': 'out',
11 'state': 'auto',
12 'move_type': order.picking_policy,
13@@ -822,7 +822,7 @@
14 if line.state == 'done':
15 continue
16
17- date_planned = self._get_date_planned(cr, uid, order, line, order.date_order, context=context)
18+ date_planned = self._get_date_planned(cr, uid, order, line, order.date_confirm, context=context)
19
20 if line.product_id:
21 if line.product_id.product_tmpl_id.type in ('product', 'consu'):