[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:
parent
c7b588ec59
commit
47c3b5519a
|
@ -315,7 +315,7 @@ class sale_order(osv.osv):
|
||||||
pricelist = part.property_product_pricelist and part.property_product_pricelist.id or False
|
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
|
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
|
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 = {
|
val = {
|
||||||
'partner_invoice_id': addr['invoice'],
|
'partner_invoice_id': addr['invoice'],
|
||||||
|
|
Loading…
Reference in New Issue