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
1=== modified file 'account_followup/i18n/account_followup.pot'
2--- account_followup/i18n/account_followup.pot 2012-02-08 01:08:30 +0000
3+++ account_followup/i18n/account_followup.pot 2012-08-20 09:01:25 +0000
4@@ -332,6 +332,21 @@
5 msgstr ""
6
7 #. module: account_followup
8+#: code:addons/account_followup/wizard/account_followup_print.py:229
9+#, python-format
10+msgid "E-Mail not available for user: %s"
11+msgstr ""
12+
13+#. module: account_followup
14+#: code:addons/account_followup/wizard/account_followup_print.py:301
15+#, python-format
16+msgid "\n"
17+"\n"
18+"\n"
19+"E-Mail has not been sent to any partner. If you want to send it, please tick send email confirmation on wizard."
20+msgstr ""
21+
22+#. module: account_followup
23 #: help:account.followup.print,date:0
24 msgid "This field allow you to select a forecast date to plan your follow-ups"
25 msgstr ""
26
27=== modified file 'account_followup/wizard/account_followup_print.py'
28--- account_followup/wizard/account_followup_print.py 2012-02-13 16:03:19 +0000
29+++ account_followup/wizard/account_followup_print.py 2012-08-20 09:01:25 +0000
30@@ -141,7 +141,7 @@
31
32 _defaults = {
33 'email_body': _get_msg,
34- 'email_subject': _('Invoices Reminder'),
35+ 'email_subject': lambda self, cr, uid, context: _('Invoices Reminder'),
36 'partner_lang': True,
37 'partner_ids': _get_partners,
38 'summary': _get_summary,
39@@ -223,10 +223,13 @@
40 partners = [stat_by_partner_line / 10000 for stat_by_partner_line in stat_by_partner_line_ids]
41 model_data_ids = mod_obj.search(cr, uid, [('model','=','ir.ui.view'),('name','=','view_account_followup_print_all_msg')], context=context)
42 resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']
43- if data.email_conf:
44+ data_user = user_obj.browse(cr, uid, uid, context=context)
45+ src = tools.config.options['email_from'] or data_user.user_email
46+ if not src:
47+ context.update({'summary': _("E-Mail not available for user: %s") % data_user.name})
48+ elif data.email_conf:
49 msg_sent = ''
50 msg_unsent = ''
51- data_user = user_obj.browse(cr, uid, uid, context=context)
52 for partner in self.pool.get('res.partner').browse(cr, uid, partners, context=context):
53 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))])
54 data_lines = move_obj.browse(cr, uid, ids_lines, context=context)
55@@ -242,7 +245,6 @@
56 if (not dest) and adr.type=='default':
57 if adr.email:
58 dest = [adr.email]
59- src = tools.config.options['email_from']
60 if not data.partner_lang:
61 body = data.email_body
62 else:
63@@ -298,7 +300,7 @@
64 summary = msg_unsent + line + msg_sent
65 context.update({'summary': summary})
66 else:
67- 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.'})
68+ 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.")})
69
70 return {
71 'name': _('Followup Summary'),