minor fix for outgoing communication email

This commit is contained in:
Rushabh Mehta 2014-06-12 10:31:43 +05:30
parent 94c17bdf85
commit 6def968c3c

View File

@ -19,7 +19,7 @@ class SellingController(StockController):
if frappe.db.get_value('Sales Email Settings', None, 'extract_emails'):
return frappe.db.get_value('Sales Email Settings', None, 'email_id')
else:
return frappe.session.user
return comm.sender or frappe.session.user
def set_missing_values(self, for_validate=False):
super(SellingController, self).set_missing_values(for_validate)