diff options
| author | AVP(Axelor) <> | 2011-04-29 14:19:48 +0530 |
|---|---|---|
| committer | AMP (OpenERP) <amp@tinyerp.com> | 2011-04-29 14:19:48 +0530 |
| commit | cc3d7333c87dcd5e164ec88ea5bc1cfef4bc8cd5 (patch) | |
| tree | c8117d281e494c73a3aa2af28e9f9ab3d22f80f2 /addons/mrp/procurement.py | |
| parent | d553615695cee83345692d53a033e1e7c5f2a512 (diff) | |
[FIX][IMP] all modules improvement.
bzr revid: amp@tinyerp.com-20110429084948-x0pny8n2ersc4h8m
Diffstat (limited to 'addons/mrp/procurement.py')
| -rw-r--r-- | addons/mrp/procurement.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/addons/mrp/procurement.py b/addons/mrp/procurement.py index b19c2c0e15e..41a9d7993a2 100644 --- a/addons/mrp/procurement.py +++ b/addons/mrp/procurement.py @@ -24,9 +24,7 @@ from dateutil.relativedelta import relativedelta from osv import fields from osv import osv from tools.translate import _ -import ir import netsvc -import time class procurement_order(osv.osv): _inherit = 'procurement.order' @@ -81,7 +79,6 @@ class procurement_order(osv.osv): procurement_obj = self.pool.get('procurement.order') for procurement in procurement_obj.browse(cr, uid, ids, context=context): res_id = procurement.move_id.id - loc_id = procurement.location_id.id newdate = datetime.strptime(procurement.date_planned, '%Y-%m-%d %H:%M:%S') - relativedelta(days=procurement.product_id.product_tmpl_id.produce_delay or 0.0) newdate = newdate - relativedelta(days=company.manufacturing_lead) produce_id = production_obj.create(cr, uid, { |
