fix: syntax error in frappe.qb set in email_account.py
This commit is contained in:
parent
95b5a919a6
commit
7744924797
1 changed files with 4 additions and 4 deletions
|
|
@ -792,11 +792,11 @@ def setup_user_email_inbox(email_account, awaiting_password, email_id, enable_ou
|
|||
update_user_email_settings = True
|
||||
|
||||
if update_user_email_settings:
|
||||
UserEmail = frappe.qb.from_("User Email")
|
||||
UserEmail = frappe.qb.DocType("User Email")
|
||||
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:
|
||||
users = " and ".join([frappe.bold(user.get("name")) for user in user_names])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue