[7.0] web_calendar: Error while removing a task from calendar view on week or day layout
Bug #1306136 reported by
Pedro Manuel Baeza
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned | |||
OpenERP Community Backports (Web) | Status tracked in 7.0 | |||||
7.0 |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
If you try to remove an element from the calendar view on day or week layout (the trash icon that appears when you click on an element), it appears some errors. For example, this one comes from deleting a task in this view:
NotImplementedE
This is because the parameter ids passed to unlink method is a single id, not a list of ids. This becomes from web_calendar addon itself, and it's general for any calendar view (sale orders, manufacturing orders, etc).
It's easily repaired changing 'delete_event' to pass a list of one ID instead the ID itself.
Please see attached branch.
Related branches
lp:~pedro.baeza/ocb-web/7.0-web_calendar-fix-1306136
Rejected
for merging
into
lp:ocb-web
- Pedro Manuel Baeza: Disapprove
- Yannick Vaucher @ Camptocamp: Approve (code review, no test)
- Holger Brunn (Therp): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedaddons/web_calendar/static/src/js/calendar.js (+1/-1)
lp:~pedro.baeza/openerp-web/7.0-web_calendar-fix-1306136
Ready for review
for merging
into
lp:openerp-web/7.0
- OpenERP Core Team: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedaddons/web_calendar/static/src/js/calendar.js (+1/-1)
To post a comment you must log in.