[trunk] email_template

Bug #886144 reported by patvad
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Medium
OpenERP R&D Addons Team 1

Bug Description

i'am testing Openerp 6.1 on runbot.openerp (web-trunk)

i created an email template ( for invoice ) with a button in action bar and i can not use this template.

i get the same wizard that mass mailing and template fields are not used.

The button name is not good. (it is the template name)

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Patvad,

I have checked your issue with latest updated code of trunk but it is working normally at my end.

Would you please elaborate more and give video or screenshot so I can understand where you face the problem.

Thanks and waiting for your reply.

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
patvad (patrick-vade) wrote :

i retried with a video recording. see attached file.

Plateform ubuntu 11.10

server revision : 3785
web revision : 1418
addons revision : 5537

Revision history for this message
patvad (patrick-vade) wrote :
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Low
status: Incomplete → Confirmed
Revision history for this message
Kuldeep Joshi(OpenERP) (kjo-openerp) wrote :

I have checked your issue with latest updated trunk and It work fine in GTK-Client. So as per my knowledge in Web-Clinet context is not pass properly it give following error :-
NameError: name 'active_id' is not defined

So,I will change the assign

Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 1 (openerp-dev-addons1) → OpenERP R&D Web Team (openerp-dev-web)
Revision history for this message
patvad (patrick-vade) wrote :

I have rechecked with trunk addons rev: 5934, server rev:3865 and web rev:1670 and i still have problem with email_template preview and action buttons defined in email_templates.

The preview is ok in GTK but not ok in web interface.
Action does not work in GTK and web interface.

Revision history for this message
patvad (patrick-vade) wrote :

mailing is a main feature in CRM and ERP, why this bug is classified "low priority" ?
For my users, a tool without email function is useless.

affects: openobject-addons → openerp-web
Changed in openerp-web:
importance: Low → Medium
Changed in openerp-web:
status: Confirmed → In Progress
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Preview works in web client now, after looking into it further there's a twofold issue in the email_template addon code:

* Some values are not kept across reloads in the web client (due to a missing bit of addons code), leading to the templates list not displaying
* The specific template is not automatically selected by the action button

The first issue should be fixed in addons trunk revision <email address hidden>

affects: openerp-web → openobject-addons
Changed in openobject-addons:
status: In Progress → Confirmed
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

As for

> The button name is not good. (it is the template name)

it's actually the action name generated with the button, I fear this is a server issue, clients get their sidebar action lists from the server, including their names, during fields_view_get and here the server only returns the action's name so that is what the clients display.

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The remaining issues have just been fixed in the latest version of the 6.1 addons:

- specific template is not selected when opening the composition wizard [1]
- wizard button using template name in the sidebar [2] - btw to fix the name you'll need to delete and re-create the action

[1] rev.6406 rev-id: <email address hidden>
[2] rev.6405 rev-id: <email address hidden>

Thanks for reporting!

Revision history for this message
patvad (patrick-vade) wrote :

Hello,

I am retesting email_template with openerp-6.1dev-20120202-020001.tar.gz source.
I am trying to send an email with a report in attachments.
It seems this module in not working completely.
see screen capture attached.

may be i do not use it correctly .

Revision history for this message
patvad (patrick-vade) wrote :

Hello,

I continue my tests when i am time.

 I think there is a bug in method "create_action" of class email_template.
'context': "{'mail.compose.message.mode':'mass_mail', 'mail.compose.template_id' : %d}" % (template.id),
'mass_mail' is not good. when i change it by 'mail' for example the report is generated.

in the same class methode generate_email,
 service = netsvc.LocalService(report_service)
            (result, format) = service.create(cr, uid, [res_id], {'model': template.model}, ctx)
           result = base64.b64encode(result)

b64encode must be remove because the attachement is encoded later in another method.

To finish there is a problem with the filename in the mime header. the mails are sent with " at the end of the filename (ex: so007/pdf") this can disturb some mail client software ( ex: orange.fr webmail replace the filename with 'no filename' for the attachment). For this point i did not find the part to modify.

Revision history for this message
Jeroen Vet (jeroen-vet) wrote :

Fixes of patvad were quite useful. Thx! Solved the problem of failing to generate the attachment. Suggest these to adopted.

Revision history for this message
Amit Parik (amit-parik) wrote :

According to comment#7 and #11 I am assigning to related team.

Thanks!

Changed in openobject-addons:
assignee: OpenERP R&D Web Team (openerp-dev-web) → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
Revision history for this message
Nimesh Contractor(Open ERP) (nco-openerp) wrote :

Hello,

      I have tested this senario in latest trunk.
      I found that recently the sidebar button is removed in addons with rev no : 7362.
      Now there is no problem in attachment in email templete at all,
      Also there is no problem in preview the template.

      This bug is not reproducable any more in letest trunk.
      Rev Nos.
      Addons : 7437
      Server : 4427
      Web : 3062

      So I am setting this bug to invalid.

      Thanks for Reporting!

Thanks,
 NCO.

Changed in openobject-addons:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.