[Fix] Fix buildbot warning

bzr revid: sbh@tinyerp.com-20101231062640-p7j0wdq40su3r0cv
This commit is contained in:
Sbh (OpenERP) 2010-12-31 11:56:40 +05:30
parent a329a57bdd
commit 55228c84a7
6 changed files with 3 additions and 10 deletions

View File

@ -196,7 +196,6 @@ class report_creator(osv.osv):
res = super(report_creator, self).read(cr, user, ids, fields, context, load)
if (not context) or 'report_id' not in context:
return res
ctx = context or {}
wp = ''
for data in res:
if not data.get('sql_query'):

View File

@ -21,7 +21,6 @@
from report.render import render
from report.interface import report_int
from pychart import *
import time
from datetime import date, datetime, timedelta
from dateutil.relativedelta import relativedelta

View File

@ -20,7 +20,7 @@
##############################################################################
from osv import osv,fields
from tools.translate import _
class pos_scan_product(osv.osv_memory):
_name = 'pos.scan.product'
@ -43,7 +43,7 @@ class pos_scan_product(osv.osv_memory):
context = {}
data=self.read(cr, uid, ids)[0]
record_id = context and context.get('active_id', False)
result =self. pool.get('pos.order.line')._scan_product(cr, uid, data['gencod'], 1, record_id)
self. pool.get('pos.order.line')._scan_product(cr, uid, data['gencod'], 1, record_id)
return {'gencod': False}
pos_scan_product()

View File

@ -19,7 +19,6 @@
#
##############################################################################
import time
from osv import fields, osv
class purchase_double_validation_installer(osv.osv_memory):

View File

@ -21,7 +21,6 @@
from osv import fields, osv
from tools.translate import _
import time
class stock_change_product_qty(osv.osv_memory):
_name = "stock.change.product.qty"
@ -43,7 +42,6 @@ class stock_change_product_qty(osv.osv_memory):
@return: A dictionary which of fields with values.
"""
product_id = context and context.get('active_id', False) or False
prod_obj =self.pool.get('product.product')
res = super(stock_change_product_qty, self).default_get(cr, uid, fields, context=context)
if 'new_quantity' in fields:
@ -64,7 +62,6 @@ class stock_change_product_qty(osv.osv_memory):
if context is None:
context = {}
move_ids = []
rec_id = context and context.get('active_id', False)
assert rec_id, _('Active ID is not set in Context')
@ -83,7 +80,7 @@ class stock_change_product_qty(osv.osv_memory):
'product_uom' : res_original.uom_id.id,
'prod_lot_id' : data.prodlot_id.id
}
line_id = inventry_line_obj.create(cr , uid, line_data, context=context)
inventry_line_obj.create(cr , uid, line_data, context=context)
inventry_obj.action_confirm(cr, uid, [inventory_id], context=context)
inventry_obj.action_done(cr, uid, [inventory_id], context=context)

View File

@ -19,7 +19,6 @@
#
##############################################################################
import time
from datetime import datetime
from dateutil.relativedelta import relativedelta