I have a user with role as production manager and when he try to send email (using the email button) from any document like sales order, workorder or job card nothing happens and when i open the webconsol i see error message
communication.js:405 Uncaught TypeError: Cannot read properties of undefined (reading ‘get_recipient’)
at frappe.views.CommunicationComposer.setup_subject_and_recipients (communication.js:405:52)
at frappe.views.CommunicationComposer.prepare (communication.js:311:8)
at frappe.views.CommunicationComposer.make (communication.js:41:8)
at new frappe.views.CommunicationComposer (communication.js:16:8)
at g.email_doc (form.js:1426:10)
at frappe.model.can_email.frm.doc.docstatus.page.add_menu_item.shortcut (toolbar.js:407:15)
at HTMLAnchorElement. (page.js:484:11)
at HTMLAnchorElement.dispatch (jquery.js:5135:27)
at Bt.handle (jquery.js:4939:28)
at HTMLAnchorElement.c (rocket-loader.min.js:1:9405)
setup_subject_and_recipients @ communication.js:405
prepare @ communication.js:311
make @ communication.js:41
frappe.views.CommunicationComposer @ communication.js:16
email_doc @ form.js:1426
frappe.model.can_email.frm.doc.docstatus.page.add_menu_item.shortcut @ toolbar.js:407
(anonymous) @ page.js:484
dispatch @ jquery.js:5135
Bt.handle @ jquery.js:4939
c @ rocket-loader.min.js:1
The email feature is working normally as administrator or account manager so i think its something to do with doctype permission. I have added read permission for contacts, communication but still the email button is not working as expected. Can someone point me what am I missing ?