On 20 May 14:03, Fabyc wrote:
> On Tuesday, May 20, 2014 2:04:28 AM UTC-5, Cédric Krier wrote:
> >
> > On 19 May 15:32, Fabyc wrote: 
> > > On Monday, May 19, 2014 5:04:24 PM UTC-5, Cédric Krier wrote: 
> > > I've defined like this [1] and in the email client appears those values. 
> > > 
> > > How can I set it for getting the email of the customer (party) for 
> > > that sale? For example: if I sell "Product 1" to "Customer 1". The field 
> > > "to" in the field of the email client should be 
> > > "[email protected]<javascript:>" 
> >
> > > 
> > > Like I have set it [1], into the field "to" in the email client appears 
> > > that 
> > > value "[email protected] <javascript:>" 
> > > 
> > > [1] {'to': '[email protected] <javascript:>', 'cc': 
> > > '[email protected]<javascript:>', 
> > 'subject': 
> > > 'The sale'} 
> >
> > You have to use a PYSON statement: 
> > http://doc.tryton.org/3.2/trytond/doc/topics/pyson.html#topics-pyson 
> >
> 
> I tried this [1] and the Eval expression return the ID of the party. The ID 
> is set in the field 'to' of the email client.
> 
> I tried this one too [2] but it doesn't return the email address I want 
> (email 
> of party).
> 
> [1] {'to': Eval('party'), 'cc': '[email protected]', 'subject': 'The sale'} 
> [2] {'to': Eval('party.email'), 'cc': '[email protected]', 'subject': 'The 
> sale'} 

Eval can only evaluate direct field so you have to create a field on
sale that will have the information you want.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgpxNIZJpACwc.pgp
Description: PGP signature

Reply via email to