From cf06a25a9ed4fc68e627512843ccccae8eecf06b Mon Sep 17 00:00:00 2001 From: Jean-Sebastien SUZANNE <> Date: Mon, 8 Aug 2011 14:59:20 +0530 Subject: [PATCH] [FIX] sale : The invoice user_id is not already the same that sale order user_id lp bug: https://launchpad.net/bugs/821486 fixed bzr revid: bde@tinyerp.com-20110808092920-7101p0fxfkteissq --- addons/sale/wizard/sale_line_invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/sale/wizard/sale_line_invoice.py b/addons/sale/wizard/sale_line_invoice.py index 8c0383acb02..4e75cc2090d 100644 --- a/addons/sale/wizard/sale_line_invoice.py +++ b/addons/sale/wizard/sale_line_invoice.py @@ -73,6 +73,7 @@ class sale_order_line_make_invoice(osv.osv_memory): 'comment': order.note, 'payment_term': pay_term, 'fiscal_position': order.fiscal_position.id or order.partner_id.property_account_position.id, + 'user_id': order.user_id and order.user_id.id or False, } inv_id = self.pool.get('account.invoice').create(cr, uid, inv) return inv_id