← Back to team overview

openerp-community-reviewer team mailing list archive

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

 

Yann Papouin has proposed merging lp:~yann-papouin/ocb-addons/6.1-bug-1260778-sale-date-confirm into lp:ocb-addons/6.1.

Requested reviews:
  OpenERP Community Backports Team (ocb)
Related bugs:
  Bug #1260778 in OpenERP Community Backports (Addons): "[6.1][7.0][trunk] Delivery order should take the confirmation date of the sale order"
  https://bugs.launchpad.net/ocb-addons/+bug/1260778

For more details, see:
https://code.launchpad.net/~yann-papouin/ocb-addons/6.1-bug-1260778-sale-date-confirm/+merge/199486
-- 
https://code.launchpad.net/~yann-papouin/ocb-addons/6.1-bug-1260778-sale-date-confirm/+merge/199486
Your team OpenERP Community Backports Team is requested to review the proposed merge of lp:~yann-papouin/ocb-addons/6.1-bug-1260778-sale-date-confirm into lp:ocb-addons/6.1.
=== modified file 'sale/sale.py'
--- sale/sale.py	2013-11-20 01:17:39 +0000
+++ sale/sale.py	2013-12-18 15:47:54 +0000
@@ -756,7 +756,7 @@
         return {
             'name': pick_name,
             'origin': order.name,
-            'date': order.date_order,
+            'date': order.date_confirm,
             'type': 'out',
             'state': 'auto',
             'move_type': order.picking_policy,
@@ -822,7 +822,7 @@
             if line.state == 'done':
                 continue
 
-            date_planned = self._get_date_planned(cr, uid, order, line, order.date_order, context=context)
+            date_planned = self._get_date_planned(cr, uid, order, line, order.date_confirm, context=context)
 
             if line.product_id:
                 if line.product_id.product_tmpl_id.type in ('product', 'consu'):


Follow ups