Merge lp:~openerp-dev/openobject-addons/6.1-opw-578236-rgo into lp:openobject-addons/6.1

Proposed by Ravi Gohil (OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 6953
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-578236-rgo
Merge into: lp:openobject-addons/6.1
Diff against target: 71 lines (+22/-5)
2 files modified
account_followup/i18n/account_followup.pot (+15/-0)
account_followup/wizard/account_followup_print.py (+7/-5)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-578236-rgo
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email: mp+120348@code.launchpad.net

Description of the change

Hello,

This MP contains fix for below issues related to account_followup,

-> If we haven't configured smtp's '--email_from' parameter and sends email using 'Send followups' wizard, the email created in queue will not have any value for 'From', so the e-mail wont be sent. After adding an sender e-mail address the e-mail gets send,

-> The message appears when you try to send email without option 'Send email confirmation' ticket, is not translated,

-> The e-mail subject in wizard is not translated.

Kindly review the fix.

Thanks.

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Confirmed on Trunk (means still existing and reproducible). A Merge Proposal for trunk was created to fix it. Here is the link to follow the MP on Launchpad and be informed once it's been merged in trunk: ... If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Unmerged revisions

6953. By Ravi Gohil (OpenERP)

[FIX] account_followup: set current user email in 'Email From' and fixed translation issues : (Maintenance Case : 578236)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'account_followup/i18n/account_followup.pot'
--- account_followup/i18n/account_followup.pot 2012-02-08 01:08:30 +0000
+++ account_followup/i18n/account_followup.pot 2012-08-20 09:01:25 +0000
@@ -332,6 +332,21 @@
332msgstr ""332msgstr ""
333333
334#. module: account_followup334#. module: account_followup
335#: code:addons/account_followup/wizard/account_followup_print.py:229
336#, python-format
337msgid "E-Mail not available for user: %s"
338msgstr ""
339
340#. module: account_followup
341#: code:addons/account_followup/wizard/account_followup_print.py:301
342#, python-format
343msgid "\n"
344"\n"
345"\n"
346"E-Mail has not been sent to any partner. If you want to send it, please tick send email confirmation on wizard."
347msgstr ""
348
349#. module: account_followup
335#: help:account.followup.print,date:0350#: help:account.followup.print,date:0
336msgid "This field allow you to select a forecast date to plan your follow-ups"351msgid "This field allow you to select a forecast date to plan your follow-ups"
337msgstr ""352msgstr ""
338353
=== modified file 'account_followup/wizard/account_followup_print.py'
--- account_followup/wizard/account_followup_print.py 2012-02-13 16:03:19 +0000
+++ account_followup/wizard/account_followup_print.py 2012-08-20 09:01:25 +0000
@@ -141,7 +141,7 @@
141141
142 _defaults = {142 _defaults = {
143 'email_body': _get_msg,143 'email_body': _get_msg,
144 'email_subject': _('Invoices Reminder'),144 'email_subject': lambda self, cr, uid, context: _('Invoices Reminder'),
145 'partner_lang': True,145 'partner_lang': True,
146 'partner_ids': _get_partners,146 'partner_ids': _get_partners,
147 'summary': _get_summary,147 'summary': _get_summary,
@@ -223,10 +223,13 @@
223 partners = [stat_by_partner_line / 10000 for stat_by_partner_line in stat_by_partner_line_ids]223 partners = [stat_by_partner_line / 10000 for stat_by_partner_line in stat_by_partner_line_ids]
224 model_data_ids = mod_obj.search(cr, uid, [('model','=','ir.ui.view'),('name','=','view_account_followup_print_all_msg')], context=context)224 model_data_ids = mod_obj.search(cr, uid, [('model','=','ir.ui.view'),('name','=','view_account_followup_print_all_msg')], context=context)
225 resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']225 resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']
226 if data.email_conf:226 data_user = user_obj.browse(cr, uid, uid, context=context)
227 src = tools.config.options['email_from'] or data_user.user_email
228 if not src:
229 context.update({'summary': _("E-Mail not available for user: %s") % data_user.name})
230 elif data.email_conf:
227 msg_sent = ''231 msg_sent = ''
228 msg_unsent = ''232 msg_unsent = ''
229 data_user = user_obj.browse(cr, uid, uid, context=context)
230 for partner in self.pool.get('res.partner').browse(cr, uid, partners, context=context):233 for partner in self.pool.get('res.partner').browse(cr, uid, partners, context=context):
231 ids_lines = move_obj.search(cr,uid,[('partner_id','=',partner.id),('reconcile_id','=',False),('account_id.type','in',['receivable']),('company_id','=',context.get('company_id', False))])234 ids_lines = move_obj.search(cr,uid,[('partner_id','=',partner.id),('reconcile_id','=',False),('account_id.type','in',['receivable']),('company_id','=',context.get('company_id', False))])
232 data_lines = move_obj.browse(cr, uid, ids_lines, context=context)235 data_lines = move_obj.browse(cr, uid, ids_lines, context=context)
@@ -242,7 +245,6 @@
242 if (not dest) and adr.type=='default':245 if (not dest) and adr.type=='default':
243 if adr.email:246 if adr.email:
244 dest = [adr.email]247 dest = [adr.email]
245 src = tools.config.options['email_from']
246 if not data.partner_lang:248 if not data.partner_lang:
247 body = data.email_body249 body = data.email_body
248 else:250 else:
@@ -298,7 +300,7 @@
298 summary = msg_unsent + line + msg_sent300 summary = msg_unsent + line + msg_sent
299 context.update({'summary': summary})301 context.update({'summary': summary})
300 else:302 else:
301 context.update({'summary': '\n\n\nE-Mail has not been sent to any partner. If you want to send it, please tick send email confirmation on wizard.'})303 context.update({'summary': _("\n\n\nE-Mail has not been sent to any partner. If you want to send it, please tick send email confirmation on wizard.")})
302304
303 return {305 return {
304 'name': _('Followup Summary'),306 'name': _('Followup Summary'),