[REF] stock,delivery :Remove the unused import statemnet, and comment code
bzr revid: sbh@tinyerp.com-20100805062157-a6dm6rmqd8nwdqq3
This commit is contained in:
parent
fa1990b532
commit
724c4ebb44
|
@ -20,7 +20,6 @@
|
|||
##############################################################################
|
||||
|
||||
import time
|
||||
import netsvc
|
||||
from osv import fields,osv
|
||||
from tools.translate import _
|
||||
|
||||
|
|
|
@ -19,10 +19,8 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
import netsvc
|
||||
from osv import fields,osv
|
||||
from tools.translate import _
|
||||
import tools
|
||||
|
||||
import decimal_precision as dp
|
||||
|
||||
|
|
|
@ -24,9 +24,6 @@ from tools.translate import _
|
|||
import tools
|
||||
from tools.sql import drop_view_if_exists
|
||||
|
||||
#
|
||||
# Check if it works with UoM ???
|
||||
#
|
||||
class stock_report_prodlots(osv.osv):
|
||||
_name = "stock.report.prodlots"
|
||||
_description = "Stock report by production lots"
|
||||
|
|
|
@ -24,7 +24,7 @@ import time
|
|||
from report.misc import choice_colors
|
||||
|
||||
#
|
||||
# dRAw a graph for stocks
|
||||
# Draw a graph for stocks
|
||||
#
|
||||
class stock_graph(object):
|
||||
def __init__(self, io):
|
||||
|
|
|
@ -20,13 +20,7 @@
|
|||
##############################################################################
|
||||
|
||||
from osv import fields, osv
|
||||
from service import web_services
|
||||
from tools.misc import UpdateableStr, UpdateableDict
|
||||
from tools.translate import _
|
||||
import netsvc
|
||||
import pooler
|
||||
import time
|
||||
import wizard
|
||||
|
||||
class stock_inventory_merge(osv.osv_memory):
|
||||
_name = "stock.inventory.merge"
|
||||
|
|
|
@ -186,8 +186,7 @@ class stock_partial_move(osv.osv_memory):
|
|||
res['move%s_product_qty'%(m.id)] = m.product_qty
|
||||
if 'move%s_product_uom'%(m.id) in fields:
|
||||
res['move%s_product_uom'%(m.id)] = m.product_uom.id
|
||||
|
||||
if (m.picking_id.type == 'out') and (m.product_id.cost_method == 'average'):
|
||||
if (m.picking_id.type == 'out') and (m.product_id.cost_method == 'average') and 'sale_id' in m.picking_id._columns.keys():
|
||||
price = 0
|
||||
if hasattr(m, 'sale_line_id') and m.sale_line_id:
|
||||
price = m.sale_line_id.price_unit
|
||||
|
@ -201,7 +200,7 @@ class stock_partial_move(osv.osv_memory):
|
|||
if 'move%s_product_currency'%(m.id) in fields:
|
||||
res['move%s_product_currency'%(m.id)] = currency
|
||||
|
||||
if (m.picking_id.type == 'in') and (m.product_id.cost_method == 'average'):
|
||||
if (m.picking_id.type == 'in') and (m.product_id.cost_method == 'average') and 'purchase_id' in m.picking_id._columns.keys():
|
||||
price = 0
|
||||
if hasattr(m, 'purchase_line_id') and m.purchase_line_id:
|
||||
price = m.purchase_line_id.price_unit
|
||||
|
@ -227,11 +226,6 @@ class stock_partial_move(osv.osv_memory):
|
|||
"""
|
||||
|
||||
rec_id = context and context.get('active_id', False)
|
||||
#tracking_lot = context.get('tracking_lot', False)
|
||||
#if tracking_lot:
|
||||
# tracking = self.pool.get('stock.tracking')
|
||||
# tracking_lot = tracking.get_create_tracking_lot(cr, uid,[rec_id], tracking_lot)
|
||||
# context ['tracking_lot'] = tracking_lot
|
||||
move_obj = self.pool.get('stock.move')
|
||||
move_ids = context.get('active_ids', False)
|
||||
partial = self.browse(cr, uid, ids[0], context)
|
||||
|
|
Loading…
Reference in New Issue