This commit is contained in:
parent
d85dc868ca
commit
82d8a637ac
@ -20,7 +20,10 @@ class SellingController(StockController):
|
|||||||
check_active_sales_items(self)
|
check_active_sales_items(self)
|
||||||
|
|
||||||
def get_sender(self, comm):
|
def get_sender(self, comm):
|
||||||
|
if frappe.db.get_value('Sales Email Settings', None, 'extract_emails'):
|
||||||
return frappe.db.get_value('Sales Email Settings', None, 'email_id')
|
return frappe.db.get_value('Sales Email Settings', None, 'email_id')
|
||||||
|
else:
|
||||||
|
return frappe.session.user
|
||||||
|
|
||||||
def set_missing_values(self, for_validate=False):
|
def set_missing_values(self, for_validate=False):
|
||||||
super(SellingController, self).set_missing_values(for_validate)
|
super(SellingController, self).set_missing_values(for_validate)
|
||||||
|
Loading…
Reference in New Issue
Block a user