Merge lp:~openerp-dev/openerp-web/6.1-opw-576512_CalendarEventDragAndDropIssue-msh into lp:openerp-web/6.1
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openerp-web/6.1-opw-576512_CalendarEventDragAndDropIssue-msh |
Merge into: | lp:openerp-web/6.1 |
Diff against target: |
108 lines (+62/-2) 1 file modified
addons/web_calendar/static/src/js/calendar.js (+62/-2) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/6.1-opw-576512_CalendarEventDragAndDropIssue-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+116229@code.launchpad.net |
Description of the change
Hello,
Fixed the issue of calendar view, here the events are dragged which has field readonly based on some state, chekced the modifiers and based on it allow drag and drop of the events so that unwanted write is not called, this is a serious issue that we can not change the date from the form but allowed from calendar view due to drag and drop feature.
Demo :- Open any calendar view and drag any event which is already in some state based on which the date fields are going to readonly, say for example Sale -> Meetings -> Meetings -> drag the event which is in "done" state.
Issue :- You will be allowed to drag and drop the events.
Expected :- Event should not be drag and drop which are satisfying some state based conditions.
This branch will fix this issue, but to evaluate the states we obviously need to pass state field from the addons in calendar view, here I have changed the info_field also so that if someone have kept invisible=1 for state field in calendar view, so that state field will not be shown on event title.
Thanks.
Unmerged revisions
- 2415. By Mohammed Shekha(Open ERP)
-
[FIX]Fixed the issue of calendar view, here the events are dragged which has field readonly based on some state, chekced the modifiers and based on it allow drag and drop of the events so that unwanted write is not called, this is a serious issue that we can not change the date from the form but allowed from calendar view due to drag and drop feature.