So I can set an email recipient programatically:
cur_dialog.get_field('recipients').set_value('asdfasd@asdfasdf.fsd')
Yet how do I get that address from somewhere?
(i.e. a custom field called custom-invoice-email)
So I can set an email recipient programatically:
cur_dialog.get_field('recipients').set_value('asdfasd@asdfasdf.fsd')
Yet how do I get that address from somewhere?
(i.e. a custom field called custom-invoice-email)
If it is data field then Just Set Email in Options of that field, and this field will auto populate it’s value in email model, other options is
cur_dialog.get_field('recipients').set_value(frm.doc.custom-invoice-email)
Hi Hardik,
thanks very much for replying! In Sales Invoice, the standard field “Contact Email” already has Options “Email”, so good!
But which email address is used here?
I always thought it is the one marked “primary contact” in the customer’s contacts. But that doesn’t seem to be true because invoices went to the wrong places.
How is it done propperly?