[FIX] sale: onchange on partner_id now set the partner's dedicated salesman as the sale salesman or the user if there is no dedicated salesman on that partner

bzr revid: olt@tinyerp.com-20100205085630-pn0smp1ras32gmf9
This commit is contained in:
olt@tinyerp.com 2010-02-05 09:56:30 +01:00
parent c7b588ec59
commit 47c3b5519a
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ class sale_order(osv.osv):
pricelist = part.property_product_pricelist and part.property_product_pricelist.id or False
payment_term = part.property_payment_term and part.property_payment_term.id or False
fiscal_position = part.property_account_position and part.property_account_position.id or False
dedicated_salesman = part.user_id and part.user_id.id or False
dedicated_salesman = part.user_id and part.user_id.id or uid
val = {
'partner_invoice_id': addr['invoice'],