Jigar Amin  (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-805507-jam into 
lp:openobject-addons.

Requested reviews:
  Bhumika (OpenERP) (sbh-openerp)
Related bugs:
  Bug #805507 in OpenERP Addons: "[trunk] fetchmail using pop to create 
hr.applicant fail when mail has no subject"
  https://bugs.launchpad.net/openobject-addons/+bug/805507

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-805507-jam/+merge/66854

Bug Fix :
   - Bug #805507: [trunk] fetchmail using pop to create hr.applicant fail when 
mail has no subject Remove
     + Same issue found with crm_lead, crm_claim and crm_helpdesk so all 
problem are fixed here.
Kindly Review This.
Thank You


-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-805507-jam/+merge/66854
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-805507-jam.
=== modified file 'crm/crm_lead.py'
--- crm/crm_lead.py	2011-07-01 23:41:24 +0000
+++ crm/crm_lead.py	2011-07-05 05:49:24 +0000
@@ -345,7 +345,7 @@
         """
         mailgate_pool = self.pool.get('email.server.tools')
 
-        subject = msg.get('subject')
+        subject = msg.get('subject') or _("No Subject")
         body = msg.get('body')
         msg_from = msg.get('from')
         priority = msg.get('priority')

=== modified file 'crm_claim/crm_claim.py'
--- crm_claim/crm_claim.py	2011-05-17 05:56:46 +0000
+++ crm_claim/crm_claim.py	2011-07-05 05:49:24 +0000
@@ -181,7 +181,7 @@
         """
         mailgate_pool = self.pool.get('email.server.tools')
 
-        subject = msg.get('subject')
+        subject = msg.get('subject') or _("No Subject")
         body = msg.get('body')
         msg_from = msg.get('from')
         priority = msg.get('priority')

=== modified file 'crm_helpdesk/crm_helpdesk.py'
--- crm_helpdesk/crm_helpdesk.py	2011-02-15 09:42:10 +0000
+++ crm_helpdesk/crm_helpdesk.py	2011-07-05 05:49:24 +0000
@@ -24,6 +24,7 @@
 import time
 import binascii
 import tools
+from tools.translate import _
 
 CRM_HELPDESK_STATES = (
     crm.AVAILABLE_STATES[2][0], # Cancelled
@@ -104,7 +105,7 @@
         """
         mailgate_pool = self.pool.get('email.server.tools')
 
-        subject = msg.get('subject')
+        subject = msg.get('subject') or _("No Subject")
         body = msg.get('body')
         msg_from = msg.get('from')
         priority = msg.get('priority')

=== modified file 'hr_recruitment/hr_recruitment.py'
--- hr_recruitment/hr_recruitment.py	2011-04-07 09:27:30 +0000
+++ hr_recruitment/hr_recruitment.py	2011-07-05 05:49:24 +0000
@@ -308,7 +308,7 @@
         mailgate_pool = self.pool.get('email.server.tools')
         attach_obj = self.pool.get('ir.attachment')
 
-        subject = msg.get('subject')
+        subject = msg.get('subject') or _("No Subject")
         body = msg.get('body')
         msg_from = msg.get('from')
         priority = msg.get('priority')

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to