sales team mapping issue in SO-DN and SO-RV

This commit is contained in:
Nabin Hait
2012-02-14 15:13:21 +05:30
parent 05f4c290ec
commit 84d73103f8
3 changed files with 14 additions and 9 deletions

View File

@@ -19,7 +19,8 @@ class TransactionBase:
self.doc.contact_mobile = contact_mobile or ''
self.get_customer_details(self.doc.customer)
self.get_sales_person(self.doc.customer)
if args != 'onload':
self.get_sales_person(self.doc.customer)
# Get Customer Default Shipping Address - first load
# -----------------------
@@ -34,8 +35,8 @@ class TransactionBase:
self.doc.contact_mobile = contact_mobile or ''
self.get_customer_details(self.doc.customer)
if self.doc.doctype != 'Quotation':
self.get_sales_person(self.doc.customer)
if self.doc.doctype != 'Quotation' and args != 'onload':
self.get_sales_person(self.doc.customer)
# Get Customer Address
# -----------------------