Comment 2 for bug 1161210

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

So this fails when switching by clicking on a list row, but works when switching by clicking on the view toggle.

The reason for this is that, when a record is activated, the listview will do some jiggling around assigning the ids of internal dataset to the one shared between all views, this is mostly for the case where one switches from a "grouped" list view, so the form view only cycles on the "current" group.

Problem is, that internal dataset is not correctly synchronized with the shared one, so when the id is removed from the shared dataset it is *not* removed from the internal one(s), and when the switch is made the ids from the internal dataset are set on the shared one and reintroduce the deleted record, leading to the form view's incorrect state.