[IMP] hr_evaluation: also updated default values when sending a mass_mail reminder.
bzr revid: tde@openerp.com-20120904115723-v5ifjg18l8hmbdj2
This commit is contained in:
@@ -399,7 +399,6 @@
|
||||
action="action_hr_evaluation_interview_tree"/>
|
||||
|
||||
<!-- Email Compose message Action-->
|
||||
<!-- TDE TODO: add context values -->
|
||||
<act_window
|
||||
id="evaluation_reminders" name="Appraisal Reminders"
|
||||
res_model="mail.compose.message"
|
||||
@@ -407,7 +406,9 @@
|
||||
view_type="form" view_mode="form"
|
||||
target="new" multi="True"
|
||||
key2="client_action_multi"
|
||||
context="{'default_composition_mode': 'mass_mail'}"/>
|
||||
context="{'default_composition_mode': 'mass_mail',
|
||||
'default_body_text': 'Hello,\n\nKindly post your response for the survey interview.\n\nThanks',
|
||||
'default_subject': 'Reminder to fill up Survey'}"/>
|
||||
|
||||
<!-- Appraisal Interviews Button on Employee Form -->
|
||||
<act_window
|
||||
|
||||
@@ -81,7 +81,7 @@ class mail_compose_message(osv.TransientModel):
|
||||
elif composition_mode == 'comment' and model and res_id:
|
||||
vals = self.get_record_data(cr, uid, model, res_id, context=context)
|
||||
elif composition_mode == 'mass_mail' and model and active_ids:
|
||||
vals = {'model': model, 'res_id': res_id, 'content_subtype': 'html'}
|
||||
vals = {'model': model, 'res_id': res_id}
|
||||
else:
|
||||
vals = {'model': model, 'res_id': res_id}
|
||||
if composition_mode:
|
||||
|
||||
Reference in New Issue
Block a user