Thank you Cédric, I will try this. Sent from my iPad
> On 30 May 2014, at 15:23, Cédric Krier <[email protected]> wrote: > >> On 30 May 06:47, Paul Leverett wrote: >> I have configured the email fields to in Reports things like this: >> {'to': '[email protected]', 'cc': 'subject': 'Quotation / Confirmation of >> Order'} >> (example for Sale) >> >> This works OK with static text, but is not very useful as the text needs to >> be dynamic and related to the Report. >> What I would like to achieve is: >> To: email address of Contact on the Party for this Sale >> Subject: Reference of Sale, Description of Sale >> >> I have seen mention of this and that "You have to use a PYSON statement", >> but I do not know how to do this. >> Could someone please give an example? It would be really useful to me if I >> could see an example of how this works, I am sure someone must have done it >> before. > > It will be: > > {'to': Eval('<field name>'), …} > > <field name> must be the name of the field on Sale that will contains > the email and it must be added to the view from which the report is > called. > > -- > Cédric Krier - B2CK SPRL > Email/Jabber: [email protected] > Tel: +32 472 54 46 59 > Website: http://www.b2ck.com/
