[cleanup] frappe.get_user

This commit is contained in:
Rushabh Mehta
2015-05-01 11:51:03 +05:30
parent 7981ea0e6c
commit 5dbf8a7418
6 changed files with 11 additions and 11 deletions

View File

@@ -186,7 +186,7 @@ def validate_due_date(posting_date, due_date, party_type, party, company):
frappe.throw(_("Due Date cannot be before Posting Date"))
elif credit_days is not None and diff > flt(credit_days):
is_credit_controller = frappe.db.get_value("Accounts Settings", None,
"credit_controller") in frappe.user.get_roles()
"credit_controller") in frappe.get_roles()
if is_credit_controller:
msgprint(_("Note: Due / Reference Date exceeds allowed customer credit days by {0} day(s)")