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'}
>
>
> > > > I'm trying to set variable 'body' in that filed and it doesn't
> permit
> > > me. I
> > > > get this
> > > > warning: " Invalid email definition on report "Sale" "
> > >
> > > Without the value you enter, it is not possible to help.
> > >
> >
> > I wanted to set this:
> > {'to': '[email protected] <javascript:>', 'cc':
> > '[email protected]<javascript:>',
> 'subject': 'This
> > is
> > the sale.', 'body': 'Here are the sale. Please check it out.'}
> >
> > It is accepted without the 'body' variable.
>
> body is not accepted in the ir.action.report because there it is not
> translatable so it must be managed by overriding the Report.
>
> > > > The name of the attached file doesn't have the number of sequence.
> For
> > > > example: sale-00005
> > >
> > > Already reported previously.
> > >
> >
> > Is there some patch for it?
>
> Not that I'm award of.
>
> --
> Cédric Krier - B2CK SPRL
> Email/Jabber: [email protected] <javascript:>
> Tel: +32 472 54 46 59
> Website: http://www.b2ck.com/
>