From ddab9f8125c3d0d801a303005f8b97518fb2a87e Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 10 Mar 2015 17:12:08 +0100 Subject: [PATCH] [FIX] web_calendar: display view's @string in quick create dialog The quick create popup tried to look up the parent's .string and .name (or the parent's field_widget's) *but* the calendar view didn't have a .string, and its .name gave priority to the view's name (as returned by fields_view_get) as opposed to its @string. Store the view arch's @string to CalendarView#string, so the quick create dialog can find and use it. --- addons/web_calendar/static/src/js/web_calendar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_calendar/static/src/js/web_calendar.js b/addons/web_calendar/static/src/js/web_calendar.js index 3b1ae6f3398..a27e587d98e 100644 --- a/addons/web_calendar/static/src/js/web_calendar.js +++ b/addons/web_calendar/static/src/js/web_calendar.js @@ -144,6 +144,7 @@ openerp.web_calendar = function(instance) { this.$el.addClass(attrs['class']); this.name = fv.name || attrs.string; + this.string = attrs.string || fv.name; this.view_id = fv.view_id; this.mode = attrs.mode; // one of month, week or day