diff options
| author | Olivier Dony <odo@openerp.com> | 2011-08-22 19:16:59 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2011-08-22 19:16:59 +0200 |
| commit | 8f9f45ea948d1ffecb79601e860d522fc6686c2d (patch) | |
| tree | a789d72a67cef289e770323aaf45c158579ecc6c /addons/crm_helpdesk/wizard/email_compose_message.py | |
| parent | 50507512cbaf6d0119a29943c9ca85deb4057404 (diff) | |
[IMP] all: next pass of review/renaming for new mail API
bzr revid: odo@openerp.com-20110822171659-zxho36a6n628i10q
Diffstat (limited to 'addons/crm_helpdesk/wizard/email_compose_message.py')
| -rw-r--r-- | addons/crm_helpdesk/wizard/email_compose_message.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/addons/crm_helpdesk/wizard/email_compose_message.py b/addons/crm_helpdesk/wizard/email_compose_message.py index ad754793044..8b147023bb3 100644 --- a/addons/crm_helpdesk/wizard/email_compose_message.py +++ b/addons/crm_helpdesk/wizard/email_compose_message.py @@ -24,15 +24,21 @@ from osv import fields import tools class email_compose_message(osv.osv_memory): - _inherit = 'email.compose.message' + _inherit = 'mail.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 + """Returns a defaults-like dict with initial values for the composition + wizard when sending an email related to the document record identified + by ``model`` and ``res_id``. - @return: Returns a dictionary + Overrides the default implementation to provide more default field values + related to the corresponding CRM case. + + :param str model: model name of the document record this mail is related to. + :param int res_id: id of the document record this mail is related to. + :param dict context: several context values will modify the behavior + of the wizard, cfr. the class description. ''' if context is None: context = {} |
