On Monday, May 19, 2014 5:04:24 PM UTC-5, Cédric Krier wrote:
>
> On 19 May 13:42, Fabyc wrote:
> > On Monday, May 19, 2014 1:39:50 PM UTC-5, Cédric Krier wrote:
> > >
> > > On 19 May 10:47, Fabyc wrote:
> > > > On Monday, May 19, 2014 12:20:38 PM UTC-5, Fabyc wrote:
> > > > >
> > > > > Hi everybody.
> > > > >
> > > > > I want to send by email a report. In this case I want to send an
> > > > > invoice. When I click on button "E-Mail report", the email client
> > > > > is opened (in my case Thunderbird) but the report is not attached
> > > > > and it doesn't fill in the email address of the customer neither.
> > >
> > > Those information must be configured for each reports.
> > >
> >
> > I have set it in all reports.
> >
> >
> > > > > I would like to send any report (invoice, sales, purchase, etc.)
> but
> > > > > it doesn't work.
> > > > >
> > > > > I imagine the attached file of the report should be in PDF format.
> > > > >
> > > > > I've set {'subject': 'Invoice'} in "Administration>User
> > > > > Interface>Actions>Reports"
> > >
> >
> > For example, in invoice report I have set the field 'Email' with
> > this: {'subject': 'Sale'}
> >
> > The email address of the customer doesn't appear when the email client
> > is opened.
>
> Of course, you defined only a subject.
>
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]"
Like I have set it [1], into the field "to" in the email client appears
that
value "[email protected]"
[1] {'to': '[email protected]', '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]', 'cc': '[email protected]', 'subject': 'This
is
the sale.', 'body': 'Here are the sale. Please check it out.'}
It is accepted without the 'body' variable.
>
> > > >
> > > > I've set in "Options>Email>Command line:" too.
> > >
> > > With what? This command must contains the right parameters for the
> email
> > > client to get the functionnality working.
> > >
> >
> > thunderbird -compose
> > "to='${to}',cc='${cc}',subject='${subject}',body='${body}''"
> >
> > Seems as I was missing the "attachment" variable:
> attachment='${attachment}'
> >
> > Now I set it and the email client is attaching the report. I see the
> > attached file is
> > in ODT format not in PDF. Is that right?
>
> The report is attached in the format of the report.
>
Ok
>
> > 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?
>
> > Another thing I can see is about the functionality of the button "E-Mail
> > report"
> > on Invoices. When I click on that button, it opens Libre Office and it
> > doesn't
> > open the email client (Do I have to report this one in a new thread?).
>
> It is because Invoice report uses a wizard because of caching.
> It was discussed at the last TUB to fix this by creating a zip file
> instead of direct print via wizard.
>
> --
> Cédric Krier - B2CK SPRL
> Email/Jabber: [email protected] <javascript:>
> Tel: +32 472 54 46 59
> Website: http://www.b2ck.com/
>