[REF]stock : Remove the unused import statement
bzr revid: sbh@tinyerp.com-20100804110744-bdh2jom27wk8dn2g
This commit is contained in:
parent
ab17cbe2fd
commit
9ccca42c77
|
@ -20,14 +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_fill_inventory(osv.osv_memory):
|
||||
_name = "stock.fill.inventory"
|
||||
|
|
|
@ -20,13 +20,9 @@
|
|||
##############################################################################
|
||||
|
||||
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_line_split(osv.osv_memory):
|
||||
_inherit = "stock.move.split"
|
||||
|
@ -105,7 +101,6 @@ class stock_inventory_line_split(osv.osv_memory):
|
|||
if quantity_rest > 0:
|
||||
update_val['product_qty'] = quantity_rest
|
||||
line_obj.write(cr, uid, [inv_line.id], update_val)
|
||||
|
||||
|
||||
return new_line
|
||||
stock_inventory_line_split()
|
||||
|
|
|
@ -20,14 +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 inventory_set_stock_zero(osv.osv_memory):
|
||||
_name = "stock.inventory.set.stock.zero"
|
||||
|
@ -46,9 +39,9 @@ class inventory_set_stock_zero(osv.osv_memory):
|
|||
@param context: A standard dictionary
|
||||
@return:
|
||||
"""
|
||||
invent_obj = pooler.get_pool(cr.dbname).get('stock.inventory')
|
||||
invent_line_obj = pooler.get_pool(cr.dbname).get('stock.inventory.line')
|
||||
prod_obj = pooler.get_pool(cr.dbname).get('product.product')
|
||||
invent_obj = self.pool.get('stock.inventory')
|
||||
invent_line_obj = self.pool.get('stock.inventory.line')
|
||||
prod_obj = self.pool.get('product.product')
|
||||
|
||||
if len(context['active_ids']) <> 1:
|
||||
raise osv.except_osv(_('Warning'),
|
||||
|
|
|
@ -20,13 +20,8 @@
|
|||
##############################################################################
|
||||
|
||||
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_invoice_onshipping(osv.osv_memory):
|
||||
_name = "stock.invoice.onshipping"
|
||||
|
|
|
@ -20,10 +20,7 @@
|
|||
##############################################################################
|
||||
|
||||
from osv import fields, osv
|
||||
from service import web_services
|
||||
from tools.translate import _
|
||||
import netsvc
|
||||
import pooler
|
||||
import time
|
||||
|
||||
class stock_partial_move(osv.osv_memory):
|
||||
|
|
|
@ -18,11 +18,9 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from osv import fields, osv
|
||||
from service import web_services
|
||||
from tools.translate import _
|
||||
import netsvc
|
||||
import pooler
|
||||
import time
|
||||
|
||||
class stock_partial_picking(osv.osv_memory):
|
||||
|
@ -230,15 +228,5 @@ class stock_partial_picking(osv.osv_memory):
|
|||
stock_partial_picking()
|
||||
|
||||
|
||||
|
||||
#_moves_arch_end = '''<?xml version="1.0"?>
|
||||
#<form string="Picking result">
|
||||
# <label string="The picking has been successfully made !" colspan="4"/>
|
||||
# <field name="back_order_notification" colspan="4" nolabel="1"/>
|
||||
#</form>'''
|
||||
|
||||
#_moves_fields_end = {
|
||||
# 'back_order_notification': {'string':'Back Order' ,'type':'text', 'readonly':True}
|
||||
# }
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -20,12 +20,8 @@
|
|||
##############################################################################
|
||||
|
||||
from osv import fields, osv
|
||||
from service import web_services
|
||||
from tools.translate import _
|
||||
import netsvc
|
||||
import pooler
|
||||
import time
|
||||
import wizard
|
||||
|
||||
class stock_replacement(osv.osv_memory):
|
||||
"""
|
||||
|
|
|
@ -19,11 +19,7 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
import wizard
|
||||
import netsvc
|
||||
import time
|
||||
import pooler
|
||||
from osv import osv
|
||||
from osv import fields, osv
|
||||
|
||||
class action_traceability(osv.osv_memory):
|
||||
"""
|
||||
|
|
|
@ -18,13 +18,9 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from osv import fields, osv
|
||||
from service import web_services
|
||||
from tools.translate import _
|
||||
import netsvc
|
||||
import pooler
|
||||
import time
|
||||
import wizard
|
||||
|
||||
class stock_ups(osv.osv_memory):
|
||||
_name = "stock.ups"
|
||||
|
@ -87,7 +83,6 @@ class stock_ups_upload(osv.osv_memory):
|
|||
"""
|
||||
report = netsvc._group['report']['report.stock.move.lot.ups_xml']
|
||||
data['report_type'] = 'raw'
|
||||
#FIXME: this seems unfinished
|
||||
fp = file('/tmp/test.xml', 'w').write(report.create(uid, context['active_id'], ids, {}))
|
||||
return {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue