diff options
| author | Rifakat Haradwala (Open ERP) <rha@tinyerp.com> | 2011-04-19 17:28:50 +0530 |
|---|---|---|
| committer | Rifakat Haradwala (Open ERP) <rha@tinyerp.com> | 2011-04-19 17:28:50 +0530 |
| commit | 44bcca9f2f68f460438f1210002f52297c2bb001 (patch) | |
| tree | 7622aa3bfbf24a467a5161eb19ab5034ce1722a3 /addons/hr_recruitment/wizard | |
| parent | a559335e4378f667b64e551cf304b76b98b913b6 (diff) | |
[IMP] email.compose.message: useability improvements
bzr revid: rha@tinyerp.com-20110419115850-8vsbd9yv3vhedgss
Diffstat (limited to 'addons/hr_recruitment/wizard')
| -rw-r--r-- | addons/hr_recruitment/wizard/email_compose_message.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/addons/hr_recruitment/wizard/email_compose_message.py b/addons/hr_recruitment/wizard/email_compose_message.py index 9320badb28b..f5cc4883ef3 100644 --- a/addons/hr_recruitment/wizard/email_compose_message.py +++ b/addons/hr_recruitment/wizard/email_compose_message.py @@ -28,6 +28,13 @@ class email_compose_message(osv.osv_memory): _inherit = 'email.compose.message' def get_value(self, cr, uid, model, resource_id, context=None): + ''' + To get values of the resource_id for the model + @param model: Object + @param resource_id: id of a record for which values to be read + + @return: Returns a dictionary + ''' if context is None: context = {} result = super(email_compose_message, self).get_value(cr, uid, model, resource_id, context=context) @@ -40,8 +47,8 @@ class email_compose_message(osv.osv_memory): 'email_from' : data.user_id and data.user_id.address_id and data.user_id.address_id.email or False, 'body' : '\n' + (tools.ustr(data.user_id.signature or '')), 'email_cc' : tools.ustr(data.email_cc or ''), - 'model': model or False, - 'res_id': resource_id or False, + 'model': model, + 'res_id': resource_id, }) return result |
