Skip to content

Commit

Permalink
[FIX] web: one2many displayed even if no data.
Browse files Browse the repository at this point in the history
Before this commit, the one2many widget was not displayed if no data.
That make some form (notebook) empty while the user don't click en edit to see the widget appear.

Eg: stock picking 'Initial Demand' tab

Courtesy of @ged-odoo
  • Loading branch information
JKE-be committed Oct 17, 2016
1 parent a88a2f5 commit e05dba3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/web/static/src/js/views/form_relational_widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,9 @@ var FieldOne2Many = FieldX2Many.extend({
return self.mutex.def;
});
},
is_false: function() {
return false;
},
});

var Many2ManyListView = X2ManyListView.extend({
Expand Down

0 comments on commit e05dba3

Please sign in to comment.