Atik Agewan(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-802569-aag into 
lp:openobject-addons.

Requested reviews:
  Rucha (Open ERP) (rpa-openerp)
Related bugs:
  Bug #802569 in OpenERP Addons: "[6.0.2] stock_planning: outgoing_before field 
in stock.planing is not correctly computed"
  https://bugs.launchpad.net/openobject-addons/+bug/802569

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-802569-aag/+merge/68049


Hello

  stock_planning: outgoing_before field in stock.planing is now correctly 
compute 

Thanks
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-802569-aag/+merge/68049
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-802569-aag.
=== modified file 'stock_planning/stock_planning.py'
--- stock_planning/stock_planning.py	2011-07-01 23:41:24 +0000
+++ stock_planning/stock_planning.py	2011-07-15 06:45:27 +0000
@@ -338,7 +338,7 @@
                     FROM stock_planning AS planning \
                     LEFT JOIN stock_period AS period \
                     ON (planning.period_id = period.id) \
-                    WHERE (period.date_stop >= %s) AND (period.date_stop <= %s) \
+                    WHERE (period.date_stop >= %s) AND (period.date_start <= %s) \
                         AND (planning.product_id = %s) AND (planning.company_id = %s) \
                     GROUP BY planning.product_uom", \
                         (date_start, date_stop, val.product_id.id, val.company_id.id,))
@@ -566,7 +566,7 @@
             already_in = self._get_in_out(cr, uid, val, start_date_current_period, current_date_end, direction='in', done=True, context=context),
             outgoing = self._get_in_out(cr, uid, val, val.period_id.date_start, val.period_id.date_stop, direction='out', done=False, context=context),
             incoming = self._get_in_out(cr, uid, val, val.period_id.date_start, val.period_id.date_stop, direction='in', done=False, context=context),
-            outgoing_before = self._get_outgoing_before(cr, uid, val, start_date_current_period, day_before_calculated_period, context=context),
+            outgoing_before = self._get_outgoing_before(cr, uid, val, day_before_calculated_period, start_date_current_period, context=context),
             incoming_before = self._get_in_out(cr, uid, val, start_date_current_period, day_before_calculated_period, direction='in', done=False, context=context),
             stock_start = self._get_stock_start(cr, uid, val, date_for_start, context=context),
             if start_date_current_period == val.period_id.date_start:   # current period is calculated

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to