[FIX] incorrect "new record" popup in calendar, did not take default values in account
authorXavier Morel <xmo@openerp.com>
Thu, 1 Dec 2011 09:02:42 +0000 (10:02 +0100)
committerXavier Morel <xmo@openerp.com>
Thu, 1 Dec 2011 09:02:42 +0000 (10:02 +0100)
commit740124b5fafb39ece86aed83266f4a0e8b2c5034
treef339dd633c439f9e40559212b704d72e0af70463
parent094d733a3a6b6902e508ed1cd43d977bc921f355
parent0727b2ddd954d535930899c875376c4d0994c2d0
[FIX] incorrect "new record" popup in calendar, did not take default values in account

In case the "trivial" (name + start date + end date) form is not
sufficient to create the record (because other fields are required),
the calendar view opens a full-blown form view of the tentatively
created record.

The calendar view did not go and fetch default values for the model,
leading to potentially invalid form states (such as missing values
other fields use to know what they're supposed to do, in this case the
"state" value was missing leading a number of form fields the user
needs to fill being readonly)

bzr revid: xmo@openerp.com-20111201090242-wpuo98af9p1514vn
addons/web_calendar/static/src/js/calendar.js