[IMP] point_of_sale:-removed unused imported files and corrected warning
authormtr <mtr@mtr>
Tue, 26 Oct 2010 10:24:00 +0000 (15:54 +0530)
committermtr <mtr@mtr>
Tue, 26 Oct 2010 10:24:00 +0000 (15:54 +0530)
bzr revid: mtr@mtr-20101026102400-j8pocgfwpmce2cbt

addons/point_of_sale/pos.py
addons/point_of_sale/wizard/all_closed_cashbox_of_the_day.py

index 720fdb4..41f3274 100644 (file)
@@ -478,7 +478,7 @@ class pos_order(osv.osv):
         """
         if not len(ids):
             return False
-        self.write(cr, uid, ids, {'state': 'draft'}, context=context)
+        self.write(cr, uid, ids, {'state': 'draft'})
         wf_service = netsvc.LocalService("workflow")
         for i in ids:
             wf_service.trg_create(uid, 'pos.order', i, cr)
index 3f56184..e38d1c1 100644 (file)
 #
 ##############################################################################
 
-import time
-
-import netsvc
-from osv import osv, fields
-from tools.translate import _
+from osv import osv
 
 class all_closed_cashbox_of_the_day(osv.osv_memory):
     _name = 'all.closed.cashbox.of.the.day'
@@ -49,4 +45,4 @@ class all_closed_cashbox_of_the_day(osv.osv_memory):
 
 all_closed_cashbox_of_the_day()
 
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file