From c624409a6b3d2b4c6070c841f9897cf25489ecf9 Mon Sep 17 00:00:00 2001 From: Olivier Laurent Date: Fri, 3 Jul 2009 13:06:10 +0200 Subject: [PATCH] [FIX] point_of_sale: partner should be copied when creating a refund bzr revid: olt@tinyerp.com-20090703110610-p3ailvymo43ulx4p --- addons/point_of_sale/pos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/point_of_sale/pos.py b/addons/point_of_sale/pos.py index ab481d908c6..ed53dac9a9e 100644 --- a/addons/point_of_sale/pos.py +++ b/addons/point_of_sale/pos.py @@ -138,7 +138,7 @@ class pos_order(osv.osv): default.update({ 'state': 'draft', 'payments': [], - 'partner_id': False, + #'partner_id': False, 'invoice_id': False, 'account_move': False, 'last_out_picking': False, @@ -481,7 +481,7 @@ class pos_order(osv.osv): for clone in self.browse(cr, uid, clone_list): for order_line in clone.lines: line_obj.write(cr, uid, [order_line.id], { - 'qty': -order_line.qty + 'qty': -order_line.qty, }) return clone_list