product delay does not take float value in count when confirming Sale orders

Bug #419720 reported by Nicolas Bessi - Camptocamp
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Vinay Rana (OpenERP)

Bug Description

Product delay does not take float value in count when confirming Sale orders

here is a small patch

=== modified file 'sale/sale.py'
--- sale/sale.py 2009-07-29 09:32:55 +0000
+++ sale/sale.py 2009-08-26 14:40:33 +0000
@@ -541,8 +541,8 @@
             picking_id = False
             for line in order.order_line:
                 proc_id=False
- date_planned = DateTime.now() + DateTime.RelativeDateTime(days=line.delay or 0.0)
- date_planned = (date_planned - DateTime.RelativeDateTime(days=company.security_lead)).strftime('%Y-%m-%d %H:%M:%S')
+ date_planned = DateTime.now() +DateTime.DateTimeDeltaFromDays(line.delay or 0.0)
+ date_planned = (date_planned - DateTime.DateTimeDeltaFromDays(company.security_lead)).strftime('%Y-%m-%d %H:%M:%S')
                 if line.state == 'done':
                     continue
                 if line.product_id and line.product_id.product_tmpl_id.type in ('product', 'consu'):

Related branches

affects: fleetmanager → openobject-addons
Changed in openobject-addons:
assignee: nobody → vra (openerp) (vra-openerp)
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thank you for the very good point and the patch too.

Fixed by revision 2413 <email address hidden>.

Changed in openobject-addons:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.