[FIX] groupby on editable list
authorXavier Morel <xmo@openerp.com>
Thu, 29 Nov 2012 13:13:01 +0000 (14:13 +0100)
committerXavier Morel <xmo@openerp.com>
Thu, 29 Nov 2012 13:13:01 +0000 (14:13 +0100)
commit9f76458404ff3d99824149d09121952c4f2fc775
treeb97bc1cdfb5399bd78d0da99c6f558da435219cd
parentbd61641572949ab2c9b1a07267cd7d7344d17a7d
[FIX] groupby on editable list

Because of the "meta" columns (e.g. group name column),
ListView#columns would end up with a different number of elements than
ListView#fields_view.arch.children, and when zipping them together (to
build the form view for edition) things wouldn't match anymore.

It would seem simply filtering out meta columns (and only keep those
actually specified by the view) is sufficient to fix the issue and
have everything line up again. I'm midly impressed.

bzr revid: xmo@openerp.com-20121129131301-scc38i4l55ea7lis
addons/web/static/src/js/view_list_editable.js