From 9dc1b03852fb39268075662062c6f9ed0887de1d Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 26 Jan 2016 15:44:27 +0100 Subject: [PATCH] [FIX] assign id on row in order to find it back in all cases --- .../static/src/js/web_widget_x2many_2d_matrix.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web_widget_x2many_2d_matrix/static/src/js/web_widget_x2many_2d_matrix.js b/web_widget_x2many_2d_matrix/static/src/js/web_widget_x2many_2d_matrix.js index 06bb5d9c..438d52b7 100644 --- a/web_widget_x2many_2d_matrix/static/src/js/web_widget_x2many_2d_matrix.js +++ b/web_widget_x2many_2d_matrix/static/src/js/web_widget_x2many_2d_matrix.js @@ -175,6 +175,8 @@ openerp.web_widget_x2many_2d_matrix = function(instance) if(cached_row.id == row.id) { row = cached_row.values; + // new rows don't have that + row.id = cached_row.id; return false; } return true;