[7.0] web_calendar: Error while removing a task from calendar view on week or day layout

Bug #1306136 reported by Pedro Manuel Baeza
6
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:

NotImplementedError: Iteration is not allowed on browse_record(project.task, x)

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers