Permalink
Browse files

review

  • Loading branch information...
tde-banana-odoo committed Oct 18, 2017
1 parent 1e0a8fc commit c8fc02a770b78cfe972797b157676f51fb693dae
Showing with 9 additions and 10 deletions.
  1. +9 −10 addons/mail/models/mail_activity.py
@@ -198,23 +198,22 @@ def action_feedback(self, feedback=False):
@api.multi
def action_done_schedule_next(self):
ctx = self.env.context.copy()
ctx.update({
'default_res_id': self.res_id,
'default_res_model': self.res_model,
})
new_form = {
'name': _('New'),
'context':ctx,
wizard_ctx = dict(
self.env.context,
default_res_id=self.res_id,
default_res_model=self.res_model,
)
self.action_done()
return {
'name': _('Schedule an Activity'),
'context': wizard_ctx,
'view_type': 'form',
'view_mode': 'form',
'res_model': 'mail.activity',
'views': [(False, 'form')],
'type': 'ir.actions.act_window',
'target': 'new',
}
self.action_feedback()
return new_form
@api.multi
def action_close_dialog(self):

0 comments on commit c8fc02a

Please sign in to comment.