Merge lp:~yann-papouin/ocb-addons/7.0-bug-1260778-sale-date-confirm into lp:ocb-addons

Proposed by Yann Papouin
Status: Merged
Merged at revision: 10010
Proposed branch: lp:~yann-papouin/ocb-addons/7.0-bug-1260778-sale-date-confirm
Merge into: lp:ocb-addons
Diff against target: 21 lines (+2/-2)
1 file modified
sale_stock/sale_stock.py (+2/-2)
To merge this branch: bzr merge lp:~yann-papouin/ocb-addons/7.0-bug-1260778-sale-date-confirm
Reviewer Review Type Date Requested Status
Ronald Portier (Therp) code review Approve
Pedro Manuel Baeza code review Approve
Sandy Carter (http://www.savoirfairelinux.com) code review, pep8 Approve
Holger Brunn (Therp) code review Approve
Review via email: mp+210164@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

same as in 6.1-ocb

review: Approve (code review)
Revision history for this message
Sandy Carter (http://www.savoirfairelinux.com) (sandy-carter) wrote :

LGTM

review: Approve (code review, pep8)
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Thanks for bringing all these patches to 7.0 branch.

Regards.

review: Approve (code review)
Revision history for this message
Ronald Portier (Therp) (rportier1962) wrote :

Approve

review: Approve (code review)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sale_stock/sale_stock.py'
2--- sale_stock/sale_stock.py 2013-11-28 11:40:19 +0000
3+++ sale_stock/sale_stock.py 2014-03-10 09:59:41 +0000
4@@ -340,7 +340,7 @@
5 return {
6 'name': pick_name,
7 'origin': order.name,
8- 'date': self.date_to_datetime(cr, uid, order.date_order, context),
9+ 'date': self.date_to_datetime(cr, uid, order.date_confirm, context),
10 'type': 'out',
11 'state': 'auto',
12 'move_type': order.picking_policy,
13@@ -407,7 +407,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.type in ('product', 'consu'):