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