[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
This commit is contained in:
committed by
Bharat (OpenERP)
parent
7fe942991c
commit
cf06a25a9e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user