[IMP] point_of_sale:Improve the copy method, set statement_ids False

bzr revid: sbh@tinyerp.com-20100531115055-nohsl4r13xcb39hh
This commit is contained in:
sbh (Open ERP)
2010-05-31 17:20:55 +05:30
parent 2f42994a16
commit 2f22f72c6a
+1 -1
View File
@@ -226,7 +226,6 @@ class pos_order(osv.osv):
else:
return False
def copy(self, cr, uid, id, default=None, context={}):
if not default:
default = {}
default.update({
@@ -236,6 +235,7 @@ class pos_order(osv.osv):
'invoice_id': False,
'account_move': False,
'picking_id': False,
'statement_ids':False,
'nb_print': 0,
'pickings': []
})