From 623dfd17d508569efc2e1087a757fc34df7c1702 Mon Sep 17 00:00:00 2001 From: mtr Date: Tue, 26 Oct 2010 15:54:00 +0530 Subject: [PATCH] [IMP] point_of_sale:-removed unused imported files and corrected warning bzr revid: mtr@mtr-20101026102400-j8pocgfwpmce2cbt --- addons/point_of_sale/pos.py | 2 +- .../point_of_sale/wizard/all_closed_cashbox_of_the_day.py | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/addons/point_of_sale/pos.py b/addons/point_of_sale/pos.py index 720fdb465f4..41f3274c667 100644 --- a/addons/point_of_sale/pos.py +++ b/addons/point_of_sale/pos.py @@ -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) diff --git a/addons/point_of_sale/wizard/all_closed_cashbox_of_the_day.py b/addons/point_of_sale/wizard/all_closed_cashbox_of_the_day.py index 3f561848edf..e38d1c1aa03 100644 --- a/addons/point_of_sale/wizard/all_closed_cashbox_of_the_day.py +++ b/addons/point_of_sale/wizard/all_closed_cashbox_of_the_day.py @@ -19,11 +19,7 @@ # ############################################################################## -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