email template sidebar action template variables values are not replaced

Bug #950389 reported by Ana Juaristi Olalde
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Low
OpenERP Publisher's Warranty Team

Bug Description

To reproduce:

Go to invoice email template, open it, go to sidebar action, push button.
Open one invoice and sidebar button is shown correctly
Push this button named "Send mail (Automated Invoice Notification Mail)"

You will see that the template variables values are not replaced on form.

Thank you:

Ana

Tags: maintenance

Related branches

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello Ana Juaristi Olalde,

Yes, you are right. When try to Push this button named "Send mail (Automated Invoice Notification Mail)", at that time the template variables values are not replaced on form. It's show the code. So It's not generalise bug, But we should improve this behaviour. that's why we will consider this as wishlist.

Thanks for reporting!

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 1 (openerp-dev-addons1) → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Changed in openobject-addons:
status: Confirmed → In Progress
importance: Wishlist → Low
Revision history for this message
Somesh Khare (somesh.khare) wrote :

Hello Ana Juaristi Olalde ,

This issue has been fixed in lp:~openerp-dev/openobject-addons/6.1-opw-577014-skh with,

Revision ID: <email address hidden>
Revision Number: 6925

This branch is under the review of our experts and will be merged soon with the stable 6.1.

Thanks,
Somesh Khare

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Bertrand Rétif (bretif) wrote :

Hello,

I get also this bug on 7.0.

Is there a patch I can apply on 7.0?

Do I need to open a new bug for 7.0?

Thanks / Bertrand

Revision history for this message
Bertrand Rétif (bretif) wrote :

I re-opened the bug, because there is no fix for this problem on 7.0

Brgds
Bertrand

Changed in openobject-addons:
status: Fix Committed → New
Revision history for this message
Rodrigo Rivera (riveraberos) wrote :

Hello. I have the same problem in OpenERP version 7.

Thank you.
Rodrigo Rivera

Revision history for this message
Bertrand Rétif (bretif) wrote :

Check this branch, it fixed the issue on v7 for me.

http://bazaar.launchpad.net/~openerp-dev/openobject-addons/7.0-opw-591051-ado/revision/9030

Brgds / Bertrand

Revision history for this message
Rodrigo Rivera (riveraberos) wrote :

Thanks Bertrand, now is working !!!!

Thank you.
Rodrigo Rivera

Revision history for this message
Rodrigo Rivera (riveraberos) wrote :

Now to send the email I get this error:

OpenERP Server Error

Client Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1132, in call_button
    action = self._call_kw(req, model, method, args, {})
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1120, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 42, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 103, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/sale/sale.py", line 997, in send_mail
    return super(mail_compose_message, self).send_mail(cr, uid, ids, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/account/account_invoice.py", line 1807, in send_mail
    return super(mail_compose_message, self).send_mail(cr, uid, ids, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/email_template/wizard/mail_compose_message.py", line 80, in send_mail
    return super(mail_compose_message, self).send_mail(cr, uid, ids, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/mail/wizard/mail_compose_message.py", line 259, in send_mail
    msg_id = active_model_pool.message_post(cr, uid, [res_id], type='comment', subtype=subtype, context=context, **post_values)
AttributeError: 'x_custom_model' object has no attribute 'message_post'

Thank you.
Rodrigo Rivera

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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