Public bug reported: 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. ** Affects: ocb-web Importance: Undecided Status: New ** Affects: ocb-web/7.0 Importance: Undecided Status: New ** Affects: openerp-web Importance: Undecided Status: New ** Also affects: ocb-web Importance: Undecided Status: New ** Also affects: ocb-web/7.0 Importance: Undecided Status: New ** Branch linked: lp:~pedro.baeza/ocb-web/7.0-web_calendar-fix-1306136 ** Branch linked: lp:~pedro.baeza/openerp-web/7.0-web_calendar- fix-1306136 -- You received this bug notification because you are a member of OpenERP Community Backports Team, which is subscribed to OpenERP Community Backports (Web). https://bugs.launchpad.net/bugs/1306136 Title: [7.0] web_calendar: Error while removing a task from calendar view on week or day layout Status in OpenERP Community Backports (Web): New Status in OpenERP Community Backports (Web) 7.0 series: New Status in OpenERP Web: New 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. To manage notifications about this bug go to: https://bugs.launchpad.net/ocb-web/+bug/1306136/+subscriptions -- Mailing list: https://launchpad.net/~openerp-community-reviewer Post to : openerp-community-reviewer@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-community-reviewer More help : https://help.launchpad.net/ListHelp