diff --git a/addons/account_followup/__openerp__.py b/addons/account_followup/__openerp__.py index 268d22c9f06..3505fa3704e 100644 --- a/addons/account_followup/__openerp__.py +++ b/addons/account_followup/__openerp__.py @@ -44,7 +44,7 @@ Note that if you want to check the followup level for a given partner/account en 'author': 'OpenERP SA', 'website': 'http://www.openerp.com', 'images': ['images/follow_ups.jpeg','images/send_followups.jpeg'], - 'depends': ['account', 'email'], + 'depends': ['account', 'mail'], 'init_xml': [], 'update_xml': [ 'security/ir.model.access.csv', diff --git a/addons/base_action_rule/__openerp__.py b/addons/base_action_rule/__openerp__.py index fd835b4ef76..33060d3c5e3 100644 --- a/addons/base_action_rule/__openerp__.py +++ b/addons/base_action_rule/__openerp__.py @@ -36,7 +36,7 @@ trigger an automatic reminder email. """, 'author': 'OpenERP SA', 'website': 'http://www.openerp.com', - 'depends': ['base', 'email'], + 'depends': ['base', 'mail'], 'init_xml': [ 'base_action_rule_data.xml' ], diff --git a/addons/base_calendar/__openerp__.py b/addons/base_calendar/__openerp__.py index b54f2ee7fb0..7efca0f4f23 100644 --- a/addons/base_calendar/__openerp__.py +++ b/addons/base_calendar/__openerp__.py @@ -22,7 +22,7 @@ { "name" : "Basic Calendar Functionality", "version" : "1.0", - "depends" : ["base", "email"], + "depends" : ["base", "mail"], 'description': """ This is a full-featured calendar system. ======================================== diff --git a/addons/crm/__openerp__.py b/addons/crm/__openerp__.py index 59a73fe79df..caf040b31c5 100644 --- a/addons/crm/__openerp__.py +++ b/addons/crm/__openerp__.py @@ -57,7 +57,7 @@ Creates a dashboard for CRM that includes: 'base', 'base_action_rule', 'process', - 'email', + 'mail', 'base_calendar', 'resource', 'board' diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 31a61f86f47..7844a9e8037 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -325,6 +325,7 @@ class crm_lead(crm_case, osv.osv): @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks + @param msg: dictionary object to contain email message data """ thread_pool = self.pool.get('email.thread') @@ -343,7 +344,7 @@ class crm_lead(crm_case, osv.osv): if msg.get('priority', False): vals['priority'] = priority - res = thread_pool.get_partner(cr, uid, msg.get('from') or msg.get_unixfrom()) + res = thread_pool.get_partner(cr, uid, msg.get('from', False)) if res: vals.update(res) diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 1ff6a4d75a0..dea5e58394c 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -107,7 +107,7 @@