diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-11-17 14:48:43 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-11-17 14:48:43 +0100 |
| commit | 1ef4061e68a6a9f07effe5efcdbd3fb3e5054cf6 (patch) | |
| tree | 32918613ae611e9b55ec5a08904a9a649bc6fd54 /addons/web_calendar/static/src | |
| parent | d7004d7dc0859056f982052184d5500846c13716 (diff) | |
| parent | 3b2f4e244f51b37050f61629bf01e6dc38cc4817 (diff) | |
[MERGE] forward port branch saas-11 up to 3b2f4e2
Diffstat (limited to 'addons/web_calendar/static/src')
| -rw-r--r-- | addons/web_calendar/static/src/js/web_calendar.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_calendar/static/src/js/web_calendar.js b/addons/web_calendar/static/src/js/web_calendar.js index 6f1be2bd5c4..f8f7317e93c 100644 --- a/addons/web_calendar/static/src/js/web_calendar.js +++ b/addons/web_calendar/static/src/js/web_calendar.js @@ -911,9 +911,9 @@ var CalendarView = View.extend({ var index = this.dataset.get_id_index(id); this.dataset.index = index; if (this.write_right) { - this.do_switch_view('form', null, { mode: "edit" }); + this.do_switch_view('form', { mode: "edit" }); } else { - this.do_switch_view('form', null, { mode: "view" }); + this.do_switch_view('form', { mode: "view" }); } } else { @@ -927,7 +927,7 @@ var CalendarView = View.extend({ buttons: [ {text: _t("Edit"), classes: 'btn-primary', close: true, click: function() { self.dataset.index = self.dataset.get_id_index(id); - self.do_switch_view('form', null, { mode: "edit" }); + self.do_switch_view('form', { mode: "edit" }); }}, {text: _t("Delete"), close: true, click: function() { |
