|
@@ -792,11 +792,11 @@ def setup_user_email_inbox(email_account, awaiting_password, email_id, enable_ou |
|
|
update_user_email_settings = True |
|
|
update_user_email_settings = True |
|
|
|
|
|
|
|
|
if update_user_email_settings: |
|
|
if update_user_email_settings: |
|
|
UserEmail = frappe.qb.from_("User Email") |
|
|
|
|
|
|
|
|
UserEmail = frappe.qb.DocType("User Email") |
|
|
frappe.qb.update(UserEmail) \ |
|
|
frappe.qb.update(UserEmail) \ |
|
|
.set(UserEmail.awaiting_password == awaiting_password or 0) \ |
|
|
|
|
|
.set(UserEmail.enable_outgoing == enable_outgoing) \ |
|
|
|
|
|
.where(UserEmail.email_account == email_account).run() |
|
|
|
|
|
|
|
|
.set(UserEmail.awaiting_password, (awaiting_password or 0)) \ |
|
|
|
|
|
.set(UserEmail.enable_outgoing, enable_outgoing) \ |
|
|
|
|
|
.where(UserEmail.email_account == email_account).run(debug=1) |
|
|
|
|
|
|
|
|
else: |
|
|
else: |
|
|
users = " and ".join([frappe.bold(user.get("name")) for user in user_names]) |
|
|
users = " and ".join([frappe.bold(user.get("name")) for user in user_names]) |
|
|